Skip to content

Using nanostores as local/component storage in React/Preact #200

Answered by ai
is-jonreeves asked this question in Q&A
Discussion options

You must be logged in to vote

It is fun experiment. IT was interesting to read the path.

Talking about the core API, we are not planning to replace useState. The philosophy of Nano Store is to move logic to state manager and keep React components dump (only as simple UI). Replacing useState will move logic back into components and will go against the initial idea.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by is-jonreeves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants