This is my solution to the React Travel Journal Solo Project on Scrimba. The solo projects are part of the Scrimba Platform's Courses.
- 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
- HTML
- CSS
- JavaScript
- React18
- Vite
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;
- Github - @ZaidMarrie
- Twitter - @LeKoels27
Pull requests are very welcome and you may freely fork this repository.
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.
- Become a professional React developer
- The Responsive Web Design Bootcamp
- The Ultimate JavaScript Bootcamp
Happy Coding!