Skip to content

Commit

Permalink
Better CTA
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Charbonneau committed Dec 28, 2020
1 parent 27159e1 commit f36416f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/react/9-managing-complex-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ ReactDOM.render(<WrapperContainer />, document.getElementById('root'));

## What data should be kept in React state?

There is no "right" answer for what data should be stored in state. Applications with simple API requirements may keep everything in state objects. Other apps may opt to store nearly everything in a separate global state management library.
There is no "right" answer for what data should be stored in state. Applications with simple API requirements may keep everything in state objects. Other apps may opt to store nearly everything in a separate global state management library such as Redux or Apollo.

For a purely React method of maintaining and exposing state accross your application, check out the [next lesson on Context.](context-hooks.html)

## Next Steps

Expand Down

0 comments on commit f36416f

Please sign in to comment.