The Header Component
Understand how to create the Header component in ReactJS for the Asia Explorer memory game. Learn to add a project title and implement a New Game button that triggers the shuffle function by passing it as a prop, enabling the game to reset and reshuffle cards.
We'll cover the following...
We'll cover the following...
The Header component has the name of our project, which is Asia Explorer, and the button that calls the onShuffle function.
Add the name
We can use any name here, but we’ll use Asia Explorer. The following snippet shows how to add the project’s name to the ...