Skip to content

Example implementations of the new features released on React@16.3

Notifications You must be signed in to change notification settings

gvarandas/react-16-3-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example implementations of the new features released on React@16.3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published