function Button(){
const [counter , setCounter] = useState(1);
const handleClick = () => setCounter(counter*3);
return (
<button onClick={handleClick}>
{counter}
</button>)
}
ReactDOM.render(
<Button />,
document.getElementById('mountNode'),
);