React Hook, Hooks, React.
<ComponentE/> </div> ) } export default ComponentD in CompinentE.js import React from ‘react’ import {UserContext} from ‘./../App’ function ComponentE() { return ( <div> <UserContext.Consumer> { user=>{ return <div>Username is {user}</div> } } </UserContext.Consumer> </div> ) } export default