Coder Social home page Coder Social logo

basic-todo-mobx-state-tree's Introduction

Todo Application with Vite, React, and MobX-State-Tree

This project is a simple Todo application built using Vite, React, and MobX-State-Tree (MST). It demonstrates the use of MST for state management in React applications, providing features such as adding, editing, and deleting todos.

Features

  • Add Todos: Users can add new todo items with titles and statuses.
  • Edit Todos: Users can edit existing todo items.
  • Delete Todos: Users can delete todo items.
  • Persistent Storage: Todos are stored persistently using localForage.
  • Animations: Smooth animations for adding and removing todos are implemented with framer-motion.

Getting Started

Prerequisites

Before you begin, ensure you have the latest version of Node.js installed on your machine. This project was built with Node.js version 14.x or higher.

Installation

git clone https://your-repository-url.git
cd your-project-directory
npm install
# or
yarn install
npm run dev
# or
yarn dev

Project Structure

  • src/App.css: Global styles for the application.
  • src/App.tsx: The main React component that renders the todo application.
  • src/components/AddTodo.tsx: A component for adding new todos.
  • src/components/TodoCard.tsx: A component that displays a single todo item, allowing users to edit or delete it.
  • src/components/TodoList.tsx: A component that renders a list of TodoCard components.
  • src/store/models/RootStore.ts: Defines the MobX-State-Tree store and its actions for managing the application state.
  • src/store/models/TodoModel.ts: Defines the MST model for a todo item.

Acknowledgments

This project was inspired by the concepts presented in JAMON's tutorial on YouTube. A special thanks to the creators of Vite, React, MobX-State-Tree, framer-motion for making web development more efficient and enjoyable.

JAMON's Tutorial

basic-todo-mobx-state-tree's People

Contributors

rokasta12 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.