Recoil utils export
See original GitHub issueI realize this is still upcoming and I’m not asking for a timeline or anything. I’m just creating some educational material on this and want to make sure that I’m making the correct assumptions.
All I want to know is that when the utils like atomFamily
are exported, how will that be done?
// option 1 (my personally preferred option)
import {atomFamily} from 'recoil'
// option 2
import {utils} from 'recoil'
const {atomFamily} = utils
// option 3
import {atomFamily} from 'recoil/utils'
// something else?
I realize that nobody can make any guarantees until it’s actually released, but if someone can give me any idea of what it might be like that would be helpful 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
selector(options) - Recoil
Selectors represent a function, or derived state in Recoil. You can think of them as similar to an "idempotent" or "pure function" without...
Read more >Recoil in action: Building a reusable code block component
Edit the store/index. js file with the code below: import { atom } from 'Recoil'; export const codeLanguageState = atom({ key: ' ...
Read more >How to Use Recoil for State Management in Your React Projects
recoil /atoms/todoAtom"; import { generateUID } from "../utils/uuid"; export const TodoItemCreator = () => { const [inputValue, ...
Read more >Build your own Recoil - ITNEXT
Recoil is a new experimental state management library for React provided by ... export function useRecoilState<T>(atom: AtomType<T>): [T, ...
Read more >React State Management with Recoil - Reflect.run
We start by importing the atom and selector utils from Recoil: ... export interface Todo { id: number, text: string, completed: boolean } ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Guess with 0.0.8 we can close this?
Thanks!