Help for Antwar Default Setup

This is the boilerplate page for an Antwar based site.

Interactive Components

Whenever you want to use a stateful (Reason)React component, you need to use an Interactive component to mark them as separate build units. Antwar will detect given components, build separate bundles and hooks them up via script injection.

This is a JS based Counter:

Current count: 5

This is a Reason based Counter:

Current count: 5

Smoke Testing Production builds

Use npm run build or npm run clean-build to build your project. For easy testing on your local machine, you can do:

cd build/
python -m SimpleHTTPServer 8000

Now you can access your built website on localhost:8000. This is the actual build you also deploy on your hosting server.