This is a simple and responsive React application that fetches random advice from the Advice Slip API and displays it to the user. It features a "Give me advice" button that, when clicked, fetches and displays a new piece of advice.
[Here is the Live demo of the simple Random Advice Generator
(https://random-advices-neon.vercel.app/)
- π Fetches random advice from an API
- π±οΈ "Give me advice" button to get new advice on demand
- π‘ Loading indicator while fetching
- β Fully responsive layout
- π¨ Simple and clean hover & active button styles
- React.js (v18+)
- Axios β for making API requests
- No additional libraries (yet) β future styling improvements may include Tailwind CSS
To run this project on your local machine:
- Clone the repo:
git clone https://github.com/ibsa-a1/Random-Advice-Generator-React-App.git
- Navigate to the project directory:
cd Random-Advice-Generator-React-App
- Install dependencies:
npm install
- Start the development server:
npm start
- Visit the app in your browser:
http://localhost:3000/
This project was built as part of my React learning journey. It helped me practice:
- Using components
- Making HTTP requests with Axios
- Handling loading states
- Structuring a simple React app
Built by Ibsa Abera
GitHub Profile Β»