React Airbnb Clone is a React project that simulates the Airbnb experience browsing. It's built using modern React features and provides an interactive way to view different accommodations and experiences.
- React: The project is built using React 18.2.0, utilizing functional components and JSX.
- React-DOM: Used for rendering the components into the DOM.
- CSS: Styling is applied using a separate CSS file to ensure a clean and attractive design.
The main component of the application that imports the Navbar
, Hero
, and Card
components. It maps through the data and renders each card item.
This component represents an individual card item, such as an accommodation or experience. It receives the item data as props and renders the details, including the image, rating, title, and price. It also uses conditional rendering to display badges like "SOLD OUT" or "ONLINE" based on the item's properties.
A hero section that displays a large image and introductory text about online experiences.
A simple navigation bar component that displays the Airbnb logo.
The entry point of the application, where the App
component is rendered into the root element.
Contains all the styling rules for the application, ensuring a consistent and appealing visual design.
To install the dependencies, run:
npm install
To start the development server, run:
npm start
Or you can view this project on CodeSandbox here.
This project is open-source and available under the MIT License.