📅  最后修改于: 2022-03-11 14:53:15.100000             🧑  作者: Mango
---- useRecoilState() vs useRecoilValue() -------------------------------
useRecoilValue(state): Returns the value of the given state.
Use to READ state WITHOUT WRITING to it.
-------------------------------------------------------------------------
useRecoilState(state): Returns an Array of two elements: the value of
the state and a setter function that will update that value.
Use to READ and WRITE state.
-------------------------------------------------------------------------
Both hooks will implicitly subscribe the component to the given state.
-------------------------------------------------------------------------