Js.React.Handling Event in Functional Components

example

export let TestElement = () => {

    const handleClick = () => {
        console.log('Sent');
    }

    return (        
        <button onClick={handleClick}>
            hi, there
        </button>
    )
}
This entry was posted in Без рубрики. Bookmark the permalink.