• Use React hook to detect the device by current window's width.
  • useContext to centralize the logic and publish changes to all listening components.

How to start the project on local

After cloning this project, run:

  1. yarn to install all dependencies
  2. yarn start to start the project created by create-react-app
  3. Open http://localhost:3000 to view it in the browser.