Giter Site home page Giter Site logo

socoding's Introduction

soCoding

https://create-react-app.dev/docs/adding-a-css-modules-stylesheet/

npm install -g create-react-app
create-react-app my-app

01 router

Router :: 데이터들을 가지고있다; 주소, 기록 내부적으로 contextprovider이다. 사용할려면 router 컴포넌트 안에서 사용해야한다.

  • context :: 많은 컴포넌트에서 사용하는데이터를 반복적인 props전달(Props Drilling)없이 공유
  • 배경 :: 여기저기 하위의 데이터들을 하나의 기능으로 묶고 싶을때(한국어> 영어)전역 데이터로 올라가서 변경을 해야하는데 이때 props 를 여러번 내리는 문제(prop Drilling반복해서 props를 내려주는 상황)을 해결하기 위해 나옴 ==> props를 거치지 않고 여러컴포넌트에 공유해줌
//router 사용법
import {BrouserRouter} form 'react-router-dom';
function Main(){
    return <BouserBouter></BrouserRouter>;
}
export default Main;

Routes Route Link

socoding's People

Contributors

firsthandcraft avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.