11. Context Props State - florypaul/ReactJS GitHub Wiki

Use Props for configuration of a custom component example we don't want to use context here, because we want to use component to login and as well as logout and so giving props for it's respective functionality

useContext for state management across components or possibility across the entire app. example isLoggedIn value to be passed on on all the components useContext cannot be use if the state changes after multiple seconds/high frequency changes - instead use Redux

⚠️ **GitHub.com Fallback** ⚠️