arp82 / react-by-sample

Set of basic React + Typescript guided samples, cover basic principles of this technology.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Typescript by sample

The goal of this project is to provide a set of step by step guided samples, covering core concepts of React (props, state, replace, cycle...).

Characteristics:

  • Bundling based on webpack.
  • React + Typescript based.
  • Simple navigation using react-router.

Contributors and reviewers are more than welcome.

To get started:

  1. Install NodeJS.
  2. Install webpack - npm install webpack -g.
  3. Download this repo.
  4. Open the command line of your choice and cd to the root directory of this repo on your machine, then cd to one of the demos projects.
  5. Install the required packages - npm install.
  6. Builds the project and launch a lite dev web server - npm start.
  7. Navigate to http://localhost:8080/ if your browser doesn't open automatically.

samples

Bundling + npm start based on webpack.

Hello world, simples react render sample.

Introduce a basic React concept, handling properties.

Introduce a basic React concept, handling State.

Using callbacks.

Refactor the job done.

Remove state from a child control just to have clear governance of state.

Enable/disable components.

Simple color picker demo (show how properties work).

ColorPicker refactor.

Implementation of a single sidebar.

Render a table and use a child component to render each row.

Using Promises.

Enhance rendering performance hooking to 'shouldComponentUpdate'.

Sample of navigation.

Basic implementation of a login page.

About

Set of basic React + Typescript guided samples, cover basic principles of this technology.

License:MIT License


Languages

Language:JavaScript 48.2%Language:TypeScript 45.7%Language:HTML 4.0%Language:CSS 2.2%