Complete intro to react - notes

I have a feeling this will be useful at some point.

const Details = props => {
    return (
        <pre>
            <code>{JSON.stringify(props, null, 4)}</code>
        </pre>
    )
}

update: it’s been a year and that has not been useful once😂

Managing state

  1. useState
  2. Context - explained nicely in this video. also shows how you can useState & useContext
  3. Redux