Coder Catchup

Episode 159 - React 16.3

Informações:

Synopsis

Release Notes: https://reactjs.org/blog/2018/03/29/react-v-16-3.html Changelog: https://github.com/facebook/react/releases/tag/v16.3.0 Context API! No more props drilling! (Passing props through various components) Thanks to createContext function on the React class. Harry Wolff has a great overview video of it https://www.youtube.com/watch?v=9Ilq6G-VMyQ Elijah Manor also has a great overview video https://www.youtube.com/watch?v=WhWqy-vxKS8 Yes, it is a new Context API, but if you use the old Context API, all will be good until React 17 StrictMode Orders you to follow best practices, it basically will give you some warnings in the console. Wrap your components in and you are ready to go. AsyncMode Any child components of the tag will now make those childrens updates asynchronous, treating them as low priority updates. Check out https://build-mbfootjxoo.now.sh/ for a working interactive example Life Cycle Methods Are Changing componentWillMount, componentWillUpdate, componentWillReceiveProps will be depreca