Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.35 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.35 KB

REACT 16.3 EXAMPLES

GitHub issue author

português

Implementação de exemplo das features introduzidas no release 16.3.0 do React.

A apresentação deste conteúdo foi originalmente produto da primeira edição do React Brasília.

Link da Apresentação


english

Example implementation of the features introduced in the 16.3.0 release of React.

This content presentation was originally a product of the first edition of React Brasília.

Presentation Link


Context API

  • Context
  • Provider
  • Consumer
  • Children as function
  • Render Prop pattern

Refs

  • createRef API
  • forwardRef API

Component Lifecycle Changes

  • Deprecation
    • ComponentWillMount
    • ComponentWIllReceiveProps
    • ComponentWillUpdate
  • Introduced
    • getDerivedStateFromProps
    • getSnapshotBeforeUpdate

StrictMode Component

  • Identifying components with unsafe lifecycles
  • Warning about legacy string ref API usage
  • Detecting unexpected side effects

Install Instructions

git clone https://github.com/gvarandas/react-16-3-examples.git

cd react-16-3

yarn

yarn start