Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 744 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 744 Bytes

A library app created using React.

Build process

I used the official React guide to give me structure when building this simple app.

Problems I encountered

1. Lifting state up

When you have a separate component that needs to access the state of a parent or component higher up, you should use props to move up the component chain.

2. Changing the state of a property on an individual object (in state)

First you should create a copy of the state that you are changing, modify it, then replace the current state with the updated one as you cannot do all this in a single setState call.

View it here