A small PoC Preact metaframework built on top of Vinxi.
- Clone the repository
- Run
yarn install - Include your routes in the
app/src/routesfolder
- All
.tsxfiles are exposed as routes /posts/index.tsxand/posts.tsxare equivalent- route params are supported via
[param]syntax in the folder name - to preload data, export a
loaderfunction in the route file. This function will be called both on the server and the client
- Run
yarn start