React

ReactJS Practical Questions - What happens when th...

24.

What happens when the following render() method executes?

render() {
  return (
    <button onClick={this.handleClick}>Click Me</button>
  );
}

It creates a new button element with the text "Click Me".

It adds an event listener to the button element.

It updates the state of the component.

Error.