Replies: 2 comments 4 replies
-
안녕하세요 @GiyunPark 님 작업중인 프로젝트를 깃헙에 올리고, 링크를 남겨주세요. 즐거운 하루 되세요 |
Beta Was this translation helpful? Give feedback.
1 reply
-
src/contexts/User.js 에 오타가 있네요 - const UserProvider = () => {
+ const UserProvider = ({ children }) => {
const [name, setName] = useState('Giyun Park');
const value = {user : {name}, dispatch: setName};
- return <UserContext.Provider value = {value}> </UserContext.Provider>;
+ return <UserContext.Provider value = {value}>{children}</UserContext.Provider>;
}; 즐거운 하루 되세요 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
7.2.3 Context 수정 실습중 아래와 같은 에러가 발생하였습니다.

소스코드는 그대로 따라하였고, web view로 띄우면 에러없이 잘나옵니다. 하지만 android emulator인 경우 render 에러가 계속 뜨는데.. 어떤게 문제일 까요??
Beta Was this translation helpful? Give feedback.
All reactions