Be A React Dev

Building Out The Actions In A ToDo App

01-Sep-2023


Amazon Prime

todo app tutorial

Introduction

Building a Todo application is a logical way to delve into the world of modern web development. In this guide, we’ll introduce the concept of actions. Our powerful tech stack: GatsbyJS, TypeScript, ReactJS, Recoil, and Chakra-UI.

Click here to find out what you will be building.

Now, let’s dive in! 🤿

A Background In Doing Stuff

We are going to introduce the concept of actions here - in the context of user actions specifically. We need to think in terms of what types of actions a user of a Todo app might want to do. In broad terms a user is going to want to:

  • Create (Add) a Todo item
  • Read a Todo item
  • Update (Edit) a Todo item
  • Delete a Todo item
  • Toggle an Item as Complete / Incomplete

And What Actions Will We Need?

At a minimum, the required actions will be:

  • Add
  • Edit
  • Delete
  • Toggle completion

Because we will have access to a list of Todo items, we really do not need a specific Read action, as the list content will provide our individual items. Also, there is no need in our simple app to retrieve a specific item.

Filtering items by complete or incomplete is handled by Recoil in the state. You'll want to read this article if you want to understand the how to bits.

In the meantime, have a think about how the actions might work and what dependencies and payloads they will need in order to operate.

What Now?

Ah, you will have to wait for the next exciting installment dear coder.

Thank you for reading thus far.

Happy coding and creating! 🌟🎉

#GatsbyJS #TypeScript #ReactJS #Recoil #ChakraUI #TodoApp #FrontendDev #WebDev #CodingTips

Photo by Thomas Bormans on Unsplash


Get Cool Swag

If you are finding this content useful (or maybe you are just a nice person or maybe you just like my merch) I would be greatful if you headed over to my shop and make a purchase or two. All proceeds will go towards making more courses.

If there’s merch missing that you would like, let me know (click this: Make Something For Me ) and I’ll try to make it for you.

Merry Everything Happy Future Time T-Shirt

Merry Everything Happy Future Time T-Shirt

You can buy this product or you can check out my shop of products.


About

The Author Guy

Find Me

Rob Welan <rob.welan@beareact.dev>FacebookKo-FiLinkedInMediumPatreonRSS FeedStack OverflowX

Tech In Use

Be A React Dev

© 2024 Be A React Dev. All rights reserved.