Is there a special variable in React similar to the $event in template in Vue?

clipboard.png
$event

react


Vue$event""
vue$event
https://github.com/vuejs/vue/...

clipboard.png

the first question has been answered. Now let"s see if any of my friends can give me some advice on my second question

.
Mar.06,2021

the first question is changed like this:

class Demo extends Component{
    warn = (message, text, event) => {
        console.log(message);
        console.log(text);
        console.log(event);
    }
        
    render() {
        return <div>
            {/*  */}
            <button onClick={e => this.warn("hello","WTF", e)}>submit</button>
        </div>
    }
}
Menu