Automatically renders a table of contents, as well as highlights the active heading
npm install react-auto-toc> Automatically renders a table of contents, as well as highlights the active heading
 
``bash`
npm install --save @react/table-of-contents
`tsx
import React, { Component } from 'react'
import MyComponent from '@react/table-of-contents'
import '@react/table-of-contents/dist/index.css'
class Example extends Component {
render() {
return
}
}
``
MIT © architgarg