react-expandable-context
React components to make anything to be expandable
Installation
npm i react-expandable-context
yarn add react-expandable-context
Usage
import Expandable from 'react-expandable-context'; { return <Expandable> <Expandable.Section => handleClick expanded <> <a = => Header </a> <div = => lorem </div> </> ) </Expandable.Section> <Expandable.Section => handleClick expanded <> <a = => Header </a> <div = => lorem </div> </> ) </Expandable.Section> </Expandable> ;}