Creating the Counter component
Let's create a new Counter component.
Inside the component, we'll import the useState hook from React, to define a new state variable called count and a function called setCount that will update the count state. Let's i...