TXG-86

React Star Wars API for Beginners

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.

Features

  • 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

Getting Started

  1. Clone the repository:
git clone https://github.com/MichaelLarocca/star-wars-api-react-version-01.git
  1. Change into the project directory:
cd star-wars-api-react-version-01
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open your browser and navigate to http://localhost:3000.

Dependencies

  • React
  • Axios

Links

Author

Michael Larocca - LinkedIn | Twitter