Reserved. I ❤ ReactJS • Array#map to render list of components • (condition) ? <RenderComponent /> : null • Returning null will not render the component. List and Conditional Rendering
Reserved. I ❤ ReactJS • Re-render a component if key prop changes • Uniquely identifies component • Must be used while rendering multiple components in a list • Doesn't get passed to component. • Cannot be used as prop name • Prefer unique ID instead of array index https://playcode.io/1046547 Key Prop
Reserved. I ❤ ReactJS • Build a Calculator App (Functional Comp.) • It should show the result • It should have operand buttons (0-9) • It should have operator buttons (÷×-+) • Add interactivity to app. • Think your own idea... Exercise