This is a simple web application built with React that displays random quotes. It fetches a collection of quotes from an external API and displays them one at a time. The user can click a button to generate a new random quote, and there's also a button to tweet the current quote.
- Fetches quotes from an API
- Displays a random quote with author
- Allows users to generate a new random quote
- Provides a button to tweet the current quote
- Responsive design for different screen sizes
- React
- React Hooks (useState, useEffect)
- Fetch API
- Font Awesome (for icons)
- CSS
- Clone the repository:
git clone https://github.com/subhajitroycode/random-quote-machine.git
- Navigate to the project directory:
cd random-quote-machine
- Install dependencies:
npm install
- Run the application:
npm run dev
- Open your web browser and visit
http://localhost:5173
to see the Random Quote Machine in action.
- Click the "New Quote" button to generate a new random quote.
- Click the Twitter icon button to open a new Twitter window and tweet the current quote.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.