DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Learn React: Delete Functionality and the Set State Hook

2 years ago thenewstack.io
Learn React: Delete Functionality and the Set State Hook

Summary: This is a summary of an article originally published by The New Stack. Read the full original article here →

Welcome to the fifth installment of our learning https://reactjs.org/ tutorial series (https://thenewstack.io/learn-react-start-of-a-frontend-dev-journey/), (https://thenewstack.io/learn-react-build-a-working-file-tree-and-manage-state/), (https://thenewstack.io/learn-react-add-event-functionality-to-a-component/), (https://thenewstack.io/learn-react-click-functionality-and-reusable-components/). Thehttps://github.com/JessicaWachtel/React-To-Do-List-Tutorial#readme has all the instructions needed to get started plus some helpful links for anyone unfamiliar with GitHub.

You will also learn how to create a fully functional to-do list application, using functional components and the use state hook.

The next thing we’re going to do is pass the function in when returning to the Task component in the App component.

For this refactor, we’re going to rebuild the App.js component as a functional component and use the Set State hook.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com