November 2018
Beginner
502 pages
10h 22m
English
The finish line is in sight now for our Tab component. The final task is to allow consumers to render tab content. We'll use the children prop to do this:
interface ITabsContext { activeName: string; handleTabClick?: (name: string, content: React.ReactNode) => void;}
interface IState { activeName: string; activeContent: React.ReactNode;}
Read now
Unlock full access