In this video series I'll show you step by step how I built the javascript calculator for FreeCodeCamp using the react library.
In this video I'll show you
▶︎ how to create react components
▶︎ how to share data between parent and child components using props
▶︎ how to send data up from child to parent component
▶︎ how to initialise and mutate state
00:00 recap
00:25 how to create react components
03:23 dynamically rendering multiple Button components
04:43 explaining props
05:46 key property
07:50 explaining state
11:10 sending data up to the parent
13:40 mutating state
14:34 sharing data with Screen components
Useful links:
components & props: https://goo.gl/VDY11R
react state: https://goo.gl/kNpN9L
react documentation: https://goo.gl/4VK8xd