CharlieWWW94 / gallery_exhibition

A ReactJS app that allows users to create art exhibitions
1 stars 0 forks source link

Display the title of the artwork on click. #4

Open CharlieWWW94 opened 3 months ago

CharlieWWW94 commented 3 months ago

The main selling point of React is that it makes dynamic web pages much easier to build. Can you add some functionality, so that when you click on one of the images displayed on the homepage, it will add the name of the artwork at the top of the page?

You will want to use useState to help you do this, docs here:

https://react.dev/reference/react/useState

There will be a million youtube tutorials for this if you are unsure

CharlieWWW94 commented 3 months ago

@vierlan This will be the next step. Transferring your existing components to functional components will make this easier.