import React from "react";
export default function App (){
const [num,setNum] = React.useState(0);
return (
<>
<div>Your Number is : {num}</div>
<div><button onClick={e=>setNum(v => v + 1)}>add 1</button></div>
</>
)
}
To enter the code editing mode, press Enter. To exit the edit mode, press Escape
You are editing the code. To exit the edit mode, press Escape