Skip to content

A simple to-do list developed in ReactJS, for documenting, learning and teaching purposes. I tried to use only basic features, in order to make things easier to understand (basic css and no dependencies or external libraries). Feel free to contribute and grow up this code.

Notifications You must be signed in to change notification settings

RafaelUnltd/simple-todo-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple To-do List

This repository has documenting purposes only and it aims on how to start with a simple project in React. Here you can see some main concepts about how to use ReactJS correctly and in an organized way.

The application

This application is basically a react list, in wich we can add some items, so we can explore how the react state works and how the virtual DOM manage it.

Running the app

It's very simple to get the project up and running. Just clone this repository and navigate to the folder path. Then execute the following commands:

$ npm install
$ npm start

Our project structure

The project structure is divided in main folders, wich are:

  • components: Every single (atomic) component needs to be developed here, such as buttons, text fields, selects and other UI components. Feel free to add here your layout components too, like grid rows and columns for example. Components should only receive props

  • containers: Containers have the power to encapsulate all logic needed from components and views. Here's where we can manipulate state and create event handlers that will be passed as props to the children components. Containers can receive props, but the main goal to create them is to pass information and logic to the views

  • views: Here is where our pages belong. All the activities, such as "Todo list", "Todo creation" and "Todo update" need to be here in order to organize it separately from the ui components

I know this explanation can be a little bit dificult, but i'm pretty sure you will understand in the moment you start reading the code. Don't be afraid ;) .

About

A simple to-do list developed in ReactJS, for documenting, learning and teaching purposes. I tried to use only basic features, in order to make things easier to understand (basic css and no dependencies or external libraries). Feel free to contribute and grow up this code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published