Props vs State
Dec 15, 2020
Props: Essentially Arguments to a function
Welcome Component is having name passed onto it (<Welcome name=’Sara’ />) so we can then call on that name using ‘{props.name}’.
resulting in…
State: an object that represents the parts of the app that can change. Each component can maintain its own state, which lives in an object called this.
So where props are handled outside the component states are handled inside the component.