AFAndrzej Friczeinfricze.hashnode.dev·Sep 25, 2022 · 2 min readIntroduction to Jotai. Part 3Intro to Jotai. Part 1 Intro to Jotai. Part 2 Creating derived atoms is easy and useful. From one data source you can create many atoms. They allow to transform source data, or create new information based on it. Derived atoms are your first tool to ...00
AFAndrzej Friczeinfricze.hashnode.dev·Sep 4, 2022 · 2 min readIntroduction to Jotai. Part 2Read first part to know what's going on here. You created first atom to hold your input text value. Then you created a derived atom that holds text length. Based on this code let’s create registration form, with basic validation. First, let’s add lab...00
AFAndrzej Friczeinfricze.hashnode.dev·Sep 3, 2022 · 2 min readIntroduction to Jotai. Part 1Jotai is simple. There's one concept there: atom. You eat with it, you sleep with it, you fight with it. You create an atom with atom function. You can use atom in your component just like React local state. Instead of useState, write useAtom. const ...00