We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
์ฐธ๊ณ : https://recoiljs.org/ko/
const fontSizeState = atom({ key: 'fontSizeState', default: 14, });
key : ๊ณ ์ ํ ํค๊ฐ ํ์
default : React ์ปดํฌ๋ํธ์ ์ํ์ฒ๋ผ ๊ธฐ๋ณธ๊ฐ๋ ๊ฐ์ง๋ค.
์ปดํฌ๋ํธ์์ atom์ ์ฝ๊ณ ์ฐ๋ ค๋ฉด useRecoilState๋ผ๋ ํ ์ ์ฌ์ฉํ๋ค. React์ useState์ ๋น์ทํ์ง๋ง ์ํ๊ฐ ์ปดํฌ๋ํธ ๊ฐ์ ๊ณต์ ๋ ์ ์๋ค๋ ์ฐจ์ด๊ฐ ์๋ค.
useRecoilState
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Recoil
ํน์ง
๐ถโ๐ซ๏ธ Atoms๋ ์ปดํฌ๋ํธ๊ฐ ๊ตฌ๋ ํ ์ ์๋ ์ํ์ ๋จ์๋ค.
๐ถโ๐ซ๏ธ Selectors๋ atoms ์ํ๊ฐ์ ๋๊ธฐ ๋๋ ๋น๋๊ธฐ ๋ฐฉ์์ ํตํด ๋ณํํ๋ค.
atoms
key : ๊ณ ์ ํ ํค๊ฐ ํ์
default : React ์ปดํฌ๋ํธ์ ์ํ์ฒ๋ผ ๊ธฐ๋ณธ๊ฐ๋ ๊ฐ์ง๋ค.
์ปดํฌ๋ํธ์์ atom์ ์ฝ๊ณ ์ฐ๋ ค๋ฉด
useRecoilState
๋ผ๋ ํ ์ ์ฌ์ฉํ๋ค. React์ useState์ ๋น์ทํ์ง๋ง ์ํ๊ฐ ์ปดํฌ๋ํธ ๊ฐ์ ๊ณต์ ๋ ์ ์๋ค๋ ์ฐจ์ด๊ฐ ์๋ค.The text was updated successfully, but these errors were encountered: