In this sample we are using the webpack to compile the tsx file and generate a whole bundle which can be used in static html page.
Please follow the below steps for using webpack compilation.
Install Node.js and npm (v6.6.0 or newer) if they are not already installed on your computer.
Verify that you are running at least node v6.x.x and npm 3.x.x by running
node -v
andnpm -v
in a terminal/console window. Older versions may produce errors.
Install the webpack globally using the following command after node installation.
npm i -g [email protected]
USe tje below commands to run the application
npm install
npm start