강의

멘토링

커뮤니티

BEST
Programming

/

Front-end

[React Part 2] Advanced Topics and Hooks

Now you can truly start to 'see' React. Learn advanced concepts and Hooks in the easiest and most accurate way.

(4.9) 32 reviews

783 learners

Level Intermediate

Course period Unlimited

  • jeonghwan
React Context
React Context
react-hooks
react-hooks
React
React
JavaScript
JavaScript
Web Application
Web Application
React Context
React Context
react-hooks
react-hooks
React
React
JavaScript
JavaScript
Web Application
Web Application
jeonghwan님의 프로필 이미지

Edited

[Appendix] MyReact Context Improvements

Hello. Thank you for taking React Part 2. While answering questions, I found some helpful information for the class.

Question content

 

We've received a lot of thought and questions while creating the React context. We've prepared an appendix with the improvements we've made to MyReact's context.

 

summation

  • When consuming values with a context created with MyReact.createContext() , the component is rendered twice.

  • I wrote some test code to demonstrate the problem.

  • Removed unnecessary renders of components that subscribe to contexts.

 

If you have already completed the course, it will be helpful to review this content. If you are taking the course before, I recommend listening to it first and then watching this video.

 

thank you

 

Comment