NextJs / Basics / Function
Function
-
1. Notes
1. define a function inside the class
handleClick = () => { console.log('Click happened'); }; 2. function call
import React from 'react'; export function App(props) { handleClick = () => { console.log('Click happened'); }; return ( Hello React.
Start editing to see some magic happen!