Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 676 Bytes

README.md

File metadata and controls

53 lines (35 loc) · 676 Bytes

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