Need help with react-by-sample?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

208 Stars 79 Forks MIT License 542 Commits 9 Opened issues


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

Services available


Need anything else?

Contributors list

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.
  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/ if your browser doesn't open automatically.


00 Boiler plate

Bundling + npm start based on webpack.

01 Hello React

Hello world, simples react render sample.

02 Properties

Introduce a basic React concept, handling properties.

03 State

Introduce a basic React concept, handling State.

04 Callback

Using callbacks.

05 Refactor

Refactor the job done.

06 Move Back To Stateless

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

07 Enable

Enable/disable components.

08 ColorPicker

Simple color picker demo (show how properties work).

09 ColorPicker Refactor

ColorPicker refactor.

10 Sidebar

Implementation of a single sidebar.

11 Table Mock

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

12 Table Http

Using Promises.

13 Should Update

Enhance rendering performance hooking to 'shouldComponentUpdate'.

14 React Router

React Router navigation example.

15 Login Form

Basic implementation of a login page.

16 Validation

React Form validation, using lc-form-validation library

17 Context

How to use React 16 context api.

18 HOC

High Order component sample..

19 RenderProps

Learn how use render props in React

20 Error Boundaries

Play with the Error Boundary concept

21 Hooks

Play with the Error Boundary concept make use of hooks a cool concept introduced in React 16.7.0

22 Hooks_UseContext

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 provides consultancy and coaching services.

Lemoncode provides training services.

For the LATAM/Spanish audience we are running an Online Front End Master degree, more info:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.