Sobes.tech
Junior — Senior

Debugging and fixing bugs in a React component

livecode

Task condition

Find and fix the errors in the following React component snippet:

 export default function CounterApp()
    let count = 0;

const changeCount = () => {
    count += 1;
    }
return (
    <div className="App">
    <p>'Nothing will happen when clicking the button</p>
    <hi>Count = {count}</hi>
    <button onClick={changeCount}>'Button</button>
    </div>
});