React Hook, Hooks, React.
context with a value..and provider must wrap the children component <UserContext.Provider value=”username here”> <ComponentC /> </UserContext.Provider> //in App.js import React from ‘react’; import ComponentC from ‘./components/ComponentC’; //context api concept export const UserContext =