Sobes.tech
Back to tasks
Junior — Senior
35

Корректировать недочёты

Companies where asked:

Сибинтэк
Get help with live coding in real time with Sobes Copilot
Task condition

Сможет ли React трактовать функцию useIncrement как пользовательский хук?

const useIncrement = (start) => start + 1;

function ExampleComponent() {
    const count = useIncrement(0);

    return (
        <div>
            <p>Count: {count}</p>
        </div>
    );
}

export default ExampleComponent;