This React app fetches API data from RapidAPI to display random quotes and users. It provides a button that, when clicked, retrieves a random quote and user from the API and updates the display.
To get started with this app, follow the instructions below:
Make sure you have the following installed on your local machine:
- Node.js (v12 or above)
- npm (Node Package Manager)
-
Clone the repository:
git clone [https://github.com/FREDVUNI/random-quotes-users-react-app.git](https://github.com/FREDVUNI/react-fetch-api)
-
Navigate to the project directory:
cd random-quotes-users-react-app
-
Install the dependencies:
npm install
To run the app locally, use the following command:
npm start
Open your web browser and visit http://localhost:3000 to see the app in action.
- Fetches random quotes and users from RapidAPI.
- Updates the display with a new random quote and user on button click.
- React: JavaScript library for building user interfaces.
- Axios: Promise-based HTTP client for making API requests.
- RapidAPI: Platform for accessing various APIs.
This project is licensed under the MIT License.