merisbahti / klyva

A state management library that follows the React component model
MIT License
55 stars 4 forks source link

Quick 5 minute tutorial #21

Closed merisbahti closed 3 years ago

merisbahti commented 3 years ago

Make a 5 minute tutorial with associated starting code sandbox.

High level script: What is klyva (simplified state management, basically just useState) Start by building TodoItem component Make that TodoItem take an atom as a prop (global state that feels local) Expand and build TodoList

merisbahti commented 3 years ago

https://codesandbox.io/s/klyva-start-3f189?file=/src/App.tsx

Tutorial start here

merisbahti commented 3 years ago

First video here: https://www.youtube.com/watch?v=xIyI9pYQLcs&feature=youtu.be