Skip to content

atton16/react-ts-boilerplate

Repository files navigation

react-ts-boilerplate

App Features

  1. Hello world page
  2. Display user's name
  3. Set user's name
  4. Validate user's name using formik
  5. In-memory state retention using RxJS and React's Higher-Order Components (HOC)
  6. Declarative routing using react-router.
  7. Conform with PWA standard by using manifest.json and service worker.

Emphasis

  1. The use of TypeScript language and TSLint enable us to
    1. write cleaner code,
    2. write more solid code,
    3. avoid using FlowTypes
  2. Demonstrate the power of RxJS to avoid using over-complicating state management framrworks like Flux and Redux.
    1. This, in turns, also helps us write code that is easier to test

Technical Features

  1. React App
  2. Written language: TypeScript
  3. Linter: TSLint
  4. Test Framework: Jest
  5. Package manager: Yarn

Getting Started

Simply execute the following shell script

npm i -g yo generator-ae-react
yo ae-react <project-name>

Disclaimer

This project was bootstrapped with Create React App.

The original execution line was

create-react-app react-ts-boilerplate --scripts-version=react-scripts-ts

See: https://github.com/Microsoft/TypeScript-React-Starter

License

ISC License

Copyright (c) 2017, Attawit Kittikrairit

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published