Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to call a function in react with arguments onclick

<button onClick={() => sayHello('James')}>Greet</button>
 
PREVIOUS NEXT
Tagged: #call #function #react #arguments #onclick
ADD COMMENT
Topic
Name
4+1 =