This is a simple React-based web application that generates random quotes. The app fetches a collection of quotes from the Quotes_API and displays a random quote along with its author. Users can click the "New Quote" button to get a new random quote.
- Random Quotes: The app fetches quotes from the Type.fit API and displays a randomly selected quote on load.
- React: The app is built using the React library for building user interfaces.
- useState Hook: Used to manage state variables for quotes and the current displayed quote.
- useEffect Hook: Utilized for fetching data (quotes) when the component mounts.
- CSS: Styling is applied using an external CSS file (
styles.css
).
To run the app locally, follow these steps:
-
Clone this repository to your local machine.
git clone https://github.com/Chaitanya-Gautam/Quote-Generator
-
Navigate to the project directory.
cd quote-generator
-
Install dependencies.
npm install
-
Start the development server.
npm start
-
Open your browser and go to http://localhost:3000 to view the app.
Happy Coding!😊