GithubHelp home page GithubHelp logo

react_study's Introduction

React_study

2021-02-23

  • components

    • react의 엘리먼트를 나타남
    • 합성 가능
    • 여러개로 추출하면 좋음
  • props

    • 읽기 전용
    • 순수 함수처럼 동작해야 함
  • State & Lifecycle

  • JSX 표현식

    • true && expression은 항상 expression으로 평가
    • false && expression은 항상 false로 평가
  • 제어 컴포넌트

    • 폼 엘리먼트가 사용자 입력을 기반으로 state를 관리, 업뎃

리액트 훅

  1. UseState
  • 가장 기본적인 Hook
  • 함수형 컴포넌트에서도 가변적인 상태를 지니고 있음
  1. UseEffect
  • 리액트 컴포넌트가 렌더링 될 때마다 특정 작업을 수행시킴
  • 클래스형 컴포넌트의 componentDidMount + componentDidUpdate
  1. useContext

  2. userReducer

  • useState보다 컴포넌트에서 더 다양한 상황에 따라 상태를 업뎃해줌
  1. useMemo
  • 함수형 컴포넌트 내부에서 발생하는 연산을 최적화
  1. useCallback
  • 렌더링 최적화
  • 이벤트 핸들러 함수를 필요할 때만 생성 가능
  1. useRef
  • 함수형 컴포넌트에서 ref를 쉽게 사용

react_study's People

Contributors

jisue 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.