An open API service indexing awesome lists of open source software.

https://github.com/lemoncode/react-by-sample

Set of basic React + Typescript guided samples, cover basic principles of this technology.
https://github.com/lemoncode/react-by-sample

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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...).

Topics covered:

+ Creating a basic starting point from scratch.
+ Basics creating components and managing with props.
+ Managing State plus callbacks.
+ Playing with currified functions.
+ Displaying tabular data.
+ Controlling render lifecycle.
+ Routing.
+ Managing form + validations
+ Next context api.
+ Creating High order components.

Contributors and reviewers are more than welcome.

## To get started:
1. Install [NodeJS](http://www.nodejs.org).
2. Download this repo.
3. 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.
4. Install the required packages - `npm install`.
5. Builds the project and launch a lite dev web server - `npm start`.
6. Navigate to [http://localhost:8080/](http://localhost:8080/) if your browser doesn't open automatically.

## samples

### [00 Boiler plate](./00_Boilerplate/readme.md)

Bundling + npm start based on webpack.

### [01 Hello React](./01_HelloReact/readme.md)

Hello world, simples react render sample.

### [02 Properties](./02_Properties/readme.md)

Introduce a basic React concept, handling properties.

### [03 State](./03_State/readme.md)

Introduce a basic React concept, handling State.

### [04 Callback](./04_Callback/readme.md)

Using callbacks.

### [05 Refactor](./05_Refactor/readme.md)

Refactor the job done.

### [06 Move Back To Stateless](./06_MoveBackToStateless/readme.md)

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

### [07 Enable](./07_Enable/readme.md)

Enable/disable components.

### [08 ColorPicker](./08_Colorpicker/readme.md)

Simple color picker demo (show how properties work).

### [09 ColorPicker Refactor](./09_ColorpRefactor/readme.md)

ColorPicker refactor.

### [10 Sidebar](./10_Sidebar/readme.md)

Implementation of a single sidebar.

### [11 Table Mock](./11_TableMock/readme.md)

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

### [12 Table Http](./12_TableHttp/readme.md)

Using Promises.

### [13 Should Update](./13_ShouldUpdate/readme.md)

Enhance rendering performance hooking to 'shouldComponentUpdate'.

### [14 React Router](./14_ReactRouter/readme.md)

React Router navigation example.

### [15 Login Form](./15_LoginForm/readme.md)

Basic implementation of a login page.

### [16 Validation](./16_Validation/readme.md)

React Form validation, using lc-form-validation library

### [17 Context](./17_Context/Readme.md)

How to use React 16 context api.

### [18 HOC](./18_Hoc/Readme.md)

High Order component sample..

### [19 RenderProps](./19_RenderProps/Readme.md)
Learn how use render props in React

### [20 Error Boundaries](./20_ErrorBoundaries/readme.md)
Play with the Error Boundary concept

### [21 Hooks](./21_Hooks/readme.md)
Play with the Error Boundary concept
make use of hooks a cool concept introduced in React 16.7.0

### [22 Hooks_UseContext](./22_Hooks_UseContext/Readme.md)
Let's see how this is solved using Hooks + Use Context.

# About Basefactor + Lemoncode

We are an innovating team of Javascript experts, passionate about turning your ideas into robust products.

[Basefactor, consultancy by Lemoncode](http://www.basefactor.com) provides consultancy and coaching services.

[Lemoncode](http://lemoncode.net/services/en/#en-home) provides training services.

For the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend