Skip to content

Utilizing browser Intersection Observer API to build Table Of Content

License

Notifications You must be signed in to change notification settings

mohamedsamara/react-toc

Repository files navigation

React TOC

Description

This project is an example of building Table Of Content in React utilizing browser Intersection Observer API

Quick start

  1. Clone this repo using git clone https://github.com/mohamedsamara/react-toc.git
  2. Move to the directory: cd <PROJECT_NAME>.
  3. Run yarn install in order to install dependencies.

Start development

yarn dev

Simple build for production

yarn build

Preview production build

yarn preview

Format with Prettier

yarn format

Run Linter

yarn lint

Testing with Jest

yarn test

E2E Testing with Cypress

yarn cypress:open

About

Utilizing browser Intersection Observer API to build Table Of Content

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published