Giter Club home page Giter Club logo

react-typescript-by-example's Introduction

React TypeScript by Example

First and foremost, much of the work here has been derived from Lemoncode's awesome repo.

About this Project

I spent three years growing alongside Angular and the tooling involved. The experience developing with TypeScript in Visual Studio Code was sublime (ha!), and so I've assembled this repo, with inspiration, to aid others who wish to utilize TypeScript's superpowers when writing React apps. To keep it as simple as possible, parcel-bundler provides a truly zero-configuration process.

Previous React experience is not required.

Each numbered folder will build on the previous folder. This means the instructions in each will closely resemble, "This example builds on XX Name. To begin, copy XX Name into a new location and run npm install. You can also just open each folder step-by-step and continue building in the same directory. ๐Ÿคทโ€ There will definitely be consistency errors to be cleaned up over time.

Caveats

The examples you find here are not the way React TypeScript projects are done; they're done the way that I do them. To quote DrivenData, "Nothing here is binding."

State Management

One of the most time consuming aspects of this project is going to be including various state management libraries/methodologies. You won't see that here for a while, and when I get there, there's no gaurantee you'll see your favorite flavor right away.


Getting Started

  1. Install NodeJS
  2. Download this repo
  3. Open the command line of your choice and cd to a sample directory within this repo on your machine
  4. npm install - Installs packages
  5. npm start - Builds the project and launch a lite web server from parcel.
  6. Navigate to http://localhost:1234/ if your browser doesn't open automatically.

Examples

00 Genesis

A one-file introduction to TypeScript, and Parcel will take care of the install for you.

01 Hello React

Your first Hello World (actually, Hello, React!) written in React and TypeScript. Congrats!

02 Components

Break apart this tiny app to establish a componet pattern that will become synonymous to the way you work with React.

react-typescript-by-example's People

Contributors

wolfhoundjesse avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.