This beginner-friendly project demonstrates how to create a React app that uses the Star Wars API to display information. The app features a Navbar with buttons to render components upon user clicks.
- Fetches data from the Star Wars API
- Displays information about planets, starships, and people
- Uses Axios for API calls
- Implements React useState and useEffect
- Includes a loading state for better user experience
- Clone the repository:
git clone https://github.com/MichaelLarocca/star-wars-api-react-version-01.git
- Change into the project directory:
cd star-wars-api-react-version-01
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000
.
- React
- Axios