Skip to content

Latest commit

 

History

History
16 lines (16 loc) · 555 Bytes

README.md

File metadata and controls

16 lines (16 loc) · 555 Bytes

Advanced(scalable) React Notes (repo)

  • refs(article)
  • make array into object
  • don't put style into component
  • use Jest to test react app and take snapshot
  • use ReactDOMServer to do SSR
  • React Optimization
    • use PureComponent
    • use shouldComponentUpdate(nextProps, nextState)
    • use componentWillUpdate(nextProps, nextState)
  • build server
    • update babel
  • build webapck
    • -p
    • vendor/app
    • babel for browser