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

https://github.com/waltertamboer/experiment-react-webpack-typescript

An experiment done to test ReactJS in combination with Webpack and Typescript.
https://github.com/waltertamboer/experiment-react-webpack-typescript

experiment react reactjs ts txt typescript webpack

Last synced: 3 months ago
JSON representation

An experiment done to test ReactJS in combination with Webpack and Typescript.

Awesome Lists containing this project

README

          

# experiment-react-webpack-typescript

Run a ReactJS application compiled with Webpack and Typescript.

Tutorial described here: https://www.typescriptlang.org/docs/handbook/react-&-webpack.html

## Installation

Install the dependencies.

```
docker run --rm -it -v $(pwd):/data -w /data node npm install
docker run --rm -it -v $(pwd):/app jmfirth/webpack webpack
```

Run the webserver:

```
docker-compose up -d
```

## What's happening

Webpack bundles the TSX files (http://www.typescriptlang.org/docs/handbook/jsx.html)
into a JavaScript bundle. This bundle is loaded in the index file which basically loads
the application.