File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -873,15 +873,6 @@ Context는 정적인 값으로 제한되지 않습니다. 다음 렌더링 시
873873- Context를 활용해 "주변에 적응하는" 컴포넌트를 작성할 수 있습니다.
874874- Context를 사용하기 전에 props를 전달하거나 JSX를 ` children` 으로 전달하는 것을 먼저 시도해보세요.
875875
876- * Context lets a component provide some information to the entire tree below it.
877- * To pass context:
878- 1. Create and export it with ` export const MyContext = createContext (defaultValue)` .
879- 2. Pass it to the ` useContext (MyContext)` Hook to read it in any child component, no matter how deep.
880- 3. Wrap children into ` < MyContext value= {... }> ` to provide it from a parent.
881- * Context passes through any components in the middle.
882- * Context lets you write components that "adapt to their surroundings".
883- * Before you use context, try passing props or passing JSX as ` children` .
884-
885876</Recap>
886877
887878<Challenges>
You can’t perform that action at this time.
0 commit comments