Skip to content

Get-JS/React_basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LECTURE

PRACTICE

  • (P) reactComponent-without-webpack

    • react Element
    • react JSX
    • babel -> JSX -> Element
  • (P) class Component LifeCycle

    • each life method parameter
      • prevState, prevProps value check
      • this.state, this.props value check
    • if return {}(object) in getDerivedStateFromProps(), no re-cycle to init step!!
      • just keep going current cycle, and nextState change.
    • if just parent update state, children component work?
      • children component call cycle. => rendering(Virtual DOM), but don't work real DOM.
  • (P) GuGuDan-without-webpack

    • GuGuDan
      • bind this
        • allow function
        • class field
    • GuGuDan
      • hook
        • pure function + useState function
  • (P) WordRelay

    • webpack.config
    • ref
      • function
      • useRef
  • (P) NumberBaseBall

    • component separate
    • pureComponent
    • ref
      • createRef
    • state only insert values immutable
    • state batch
      • if change many state using setState, you don't have that you want it result always
      • first parameter of setState function knows previous State
    • mount update manage like shouldComponentUpdate
      • PureComponent
      • memo
    • useMemo
  • (P) RSP

    • async method setInterval
    • life cycle (class, hook)
    • Higher-Order-Component
  • (P) ResponseCheck

    • async method like setTimeout
      • why always use clearTimeout?
        • MountUpdate!! -> if don't use the clearTimeout, queue the async WEB API method
        • so, you don't have that you want it result
  • (P) Higher order Component

    • inner Component has props that Higher order Component return value
  • (P) Lotto

    • useEffect look up dependency props or state
  • (P) TicTacToe

    • reducer => async call, if sync call, use useEffect call
    • useMemo => can know component
  • (P) MineSearch

    • ContextAPI

About

Practice the overall basic skills used in React

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •