React anchor heading
A React heading component with id that automatically changes with textContent for anchoring.
import Heading from '@blackblock/react-anchor-heading'
//Input
<Heading as={'h2'}>Hello world</Heading>
//Output
<h2 id="hello-world">Hello world</h2>
Installation
npm i @blackblock/react-anchor-heading