Sharky smiling next to the blue React logo

🎉 Congratulations! You saved the turtles, cleaned the beach and rescued the sloths. You built a real React app, and Sharky is very proud of you!

What you learned

React ideaWhat it meansWhere you used it
ComponentsSmall pieces of code that each make one part of the screenEvery card in your app
State (useState)React’s memory. When it changes, the screen updatesThe turtle counter and the trash list
Events (onClick)Run a function when something is clickedEvery button
Lists (.map())Show one thing for each item in a listThe trash buttons and the sloth cards
.filter()Make a new list without some of the itemsPicking up trash
PropsInformation you hand to a componentname, saved and onRescue for each sloth
? : and &&Show different things depending on a questionThe success messages

See the finished app

Want to compare your app with ours? This opens the finished app in a new tab. It’s a separate copy, so your own app stays safe in your tab. It also has two bonus cards, the coffee farm and the volcano. You can build those next!

👉 Open the finished app

Keep going

Keep your app

Your app is only saved in your StackBlitz tab. If you want to keep it, ask an adult to help you sign in to StackBlitz and save your own copy with the Fork button at the top.

As they say in Costa Rica: ¡Pura vida! 🦈