Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge | Getting Started
React Tutorial
course content

Cursusinhoud

React Tutorial

React Tutorial

1. Getting Started
2. Lifecycle Methods
3. Functional Components and Hooks
4. Advanced Topics

book
Challenge

In this challenge, we will create a react component that adds an item to an HTML list and displays it when a user presses the add button.

Your tasks are as follows:

  • Initialize state variable items with an empty array.

  • Bind the given function handleAddItem in the constructor.

  • Loop over the variable items and display each in a list item.

Hints:

  • Add it as you do in a JS object.

  • Bind using this.methodname.bind(this) code

  • Refer to the JSX chapter.

Solution

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 10

Vraag AI

expand
ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

course content

Cursusinhoud

React Tutorial

React Tutorial

1. Getting Started
2. Lifecycle Methods
3. Functional Components and Hooks
4. Advanced Topics

book
Challenge

In this challenge, we will create a react component that adds an item to an HTML list and displays it when a user presses the add button.

Your tasks are as follows:

  • Initialize state variable items with an empty array.

  • Bind the given function handleAddItem in the constructor.

  • Loop over the variable items and display each in a list item.

Hints:

  • Add it as you do in a JS object.

  • Bind using this.methodname.bind(this) code

  • Refer to the JSX chapter.

Solution

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 10
Onze excuses dat er iets mis is gegaan. Wat is er gebeurd?
some-alt