A React app that fetches and displays random jokes from different categories using a Jokes API.
- Fetch random jokes from different categories.
- Select a category from a dropdown menu.
- Display the selected category's random joke.
- Simple and responsive UI.
- Node.js and npm installed on your machine.
-
Clone the repository:
git clone https://github.com/MuchokiDavid/Joker.git
-
Navigate to the project directory:
cd joker
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to http://localhost:3000.
You should see an interface with a "Get Joke" button, a select input for selecting the category of jokes and a paragraph of joke randomly generated.
-
Explore random jokes by selecting different categories from the dropdown.
This app uses the Jokes API to fetch random jokes. You can find more information about the API here.
- Fork the repository.
- Create a new branch for your feature: git checkout -b feature/new-feature.
- Make your changes and commit: git commit -m 'Add new feature'.
- Push to the branch: git push origin feature/new-feature.
- Submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.