React app that displays a random quote and lets the user tweet it, built for the FreeCodeCamp Front End Libraries certification.
- Fetches a list of quotes from the
type.fitpublic API on mount. - Displays a randomly selected quote and its author each render
- "Get another quote" button selects and displays a new random quote
- Twitter intent link lets the user tweet the current quote with hashtags
- Loading state shown while quotes are being fetched
- Class component; the new-quote button calls
forceUpdate()to pick a new random quote from already-fetched state. - JavaScript
- Create React App (react-scripts 5)
- Node.js 16+
- Yarn 1.x (matching the
yarn.lockin the repo)
yarn installyarn startOpen http://localhost:3000 in your browser.
yarn buildyarn test.
├── public/
├── src/
├── package.json
└── README.md
This project is licensed under the MIT License — see the LICENSE file.