How to Use React's Context API – Tutorial with Examples
Less than 1 minute
How to Use React's Context API – Tutorial with Examples 관련
React.js > Article(s)
Article(s)
How to Use React's Context API – Tutorial with Examples
In React, data is typically passed down from parent to child via props. But this can lead to 'prop drilling' – where we have to pass props down through lots of components to get them where they're needed. Also, some props (for example, the current authenticated user, UI theme, or...