Coder Social home page Coder Social logo

react-todo-walkthrough-jquery's Introduction

React Todo

Learning Objectives

  • Build a todo app in React that persists with a backend
  • Use React Router to deep link
  • Use axios promise library to retrieve data from a back end
  • Pass state from parent components to children as props
  • Pass state from children components to their parents as arguments to functions

Component-Based Architecture

Today, we'll be creating a Todo app in React.

With Angular, we saw feature-based separation of concerns. React is organized with components that separate concerns further and reduce the potential of tight coupling.

When designing components for your app, think of the FIRST principles:

Focused

Components should do one thing and do it well.

Resist the temptation to pack too much information into a component. As you progress you will get a better sense of how to minimize component code.

Independent

Components should increase cohesion and reduce coupling.

Behavior in one component should not impact the behavior of another.

In other words, components should rely on each other as little as possible.

Reusable

Components should be written in a way that reduces the duplication of code. Reusability keeps things DRY!

Small

Ideally, components should be short and condensed.

Testable

Because the same input will always produce the same output, components are easily unit-testable.

React Todo Project

We're going to be building this application from scratch!

Workflow Tips

If you get behind, refer back to these notes.

Pay attention to the error messages you'll get in terminal and in the chrome dev tools. Errors from React are usually very accurate and helpful, so please utilize them.

Think critically about code snippets. Some of them will be repetitions, to reiterate important points. Some of them will update existing files. Some will have brand new content, and you'll add the entire snippet to your project.

Sprints

Sprint 0: Getting Started

Sprint 1: React Router setup

Sprint 2: Containers and Nested Components

Sprint 3: Fetching data with AJAX

Sprint 4: Creating Todos

Sprint 5: Deleting Todos

Sprint 6: Edit/Update a Todo

list

react-todo-walkthrough-jquery's People

Contributors

andrewsunglaekim avatar bgveenstra avatar jeanmw avatar justincastilla avatar superbuggy avatar

Watchers

 avatar  avatar  avatar

react-todo-walkthrough-jquery's Issues

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.