GithubHelp home page GithubHelp logo

h2s-react's Introduction

H2S Frontend with React

Table of Contents

Project Setup

Welcome to the world of client-side development. This is where we will setup our first project and run our first demo app.

Templating

Templating in React is very similar to writing regular HTML. If we want to return multiple elements everything must be nested/wrapped in a single element.

Components

Web components allow for modularity and code reuseability.

State

State is how we keep track of data. We should simplfy our state as much as possible and try to minimize the number of stateful components. We can achieve this by creating containers/pages that manage discrete states.

Props

Props are data passed to child components. They are immutable. Containers should be in charge of state, while their child components should only contain props.

Data & Lifecycle Methods

Here I will go over the relevant lifecycle methods and how to fetch data from an API.

Forms

Here we will begin to actually create the final todo app. We will start with creating an input component.

Events

Here we will create an onClick method for handling form submission. Create a button component.

Keys

Now we will create our Todo item component and use Array.map to fill our Todo list.

Routing

We will create a mock Homepage and small header component.

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.