- Use React hook to detect the device by current window's width.
useContext
to centralize the logic and publish changes to all listening components.
After cloning this project, run:
yarn
to install all dependenciesyarn start
to start the project created by create-react-app- Open http://localhost:3000 to view it in the browser.