React's new context API: toggle between local and global state
By Diego Haz Consider a component that handles a visibility state and passes it down to its children via render props: const PopoverContainer = () => ( <VisibilityContainer> {({ toggle, hidden }) => ( <div>
freeCodeCamp.org