Git Product home page Git Product logo

new_todo's Introduction

New_Todo

Restart Todo Project with React framework

使用方法

  • npm i 安装依赖
  • npm run start 启动项目,会自动打开浏览器
  • 如果未打开浏览器,请点击 http://localhost:8080 可访问

项目说明

  • 这是我的todo项目的react版本
  • 仅使用了react和react-dom库
  • 组件间通信采用了两种方式
    • 1 使用context
    • 2 父组件传props到子组件
  • 布局继续沿用了flex方式。

目录结构

.
├── bundle.js ---> 自动打包生成的js文件,可在webpack中进行配置
├── components ---> 包含所有组件
│   ├── add_items.tsx --> 添加待办项
│   ├── app.tsx --> 主组件
│   ├── item_filter.tsx --> 待办项筛选组件
│   ├── item_list.tsx --> 待办项列表组件
│   ├── item.tsx --> 单个待办项组件
│   └── pagination.tsx --> 分页组件
├── index.html --> 主入口
├── node_modules
├── package.json
├── README.md
├── res --> 资源文件夹
│   └── img
├── style.css --> 样式表
├── tsconfig.json
└── webpack.config.js --> webpack配置表

new_todo's People

Contributors

jiangliruii avatar

Stargazers

 avatar

Watchers

James Cloos 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.