Skip to content

Latest commit

 

History

History
87 lines (60 loc) · 2.26 KB

README.md

File metadata and controls

87 lines (60 loc) · 2.26 KB

Travel Journal (React Solo Project Solution)

This is my solution to the React Travel Journal Solo Project on Scrimba. The solo projects are part of the Scrimba Platform's Courses.

The challenge

  • Data array in a seperate .js file
    • Title
    • Location
    • Google Maps
    • Start Date
    • End Date
    • Description
    • Image URL
  • Create a card component for each card
  • Pass props to each component
  • Style and polish the app as in the Figma design

Screenshot

Travel Journal

Links

My Process

Built with

  • HTML
  • CSS
  • JavaScript
  • React18
  • Vite

What I learned

I learned and practiced the following concepts:

  • React Props
  • Conditional Rendering
  • Rendering a collection of elements with Array.map() method

A snippet of the code I used

import Card from "./Card";
import journalData from "../journalData";

function Cards() {
	return (
		<main className="container">
			{journalData.map((dataEntry) => {
				return <Card key={dataEntry.id} {...dataEntry} />;
			})}
		</main>
	);
}

export default Cards;

Author

Contributing

Pull requests are very welcome and you may freely fork this repository.

Supporting Scrimba

Since 2017, scrimba has created over 20 free courses and continue's launching free courses. If you perhaps are interested in learning or maybe just would like to up your skills try out their courses at scrimba.com.

Happy Coding!

License

MIT