Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konradmi/vinxi-preact
https://github.com/konradmi/vinxi-preact
metaframework preact preact-router vinxi
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/konradmi/vinxi-preact
- Owner: konradmi
- Archived: true
- Created: 2024-06-10T14:12:12.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-19T13:14:38.000Z (6 months ago)
- Last Synced: 2024-09-21T06:03:54.522Z (3 months ago)
- Topics: metaframework, preact, preact-router, vinxi
- Language: TypeScript
- Homepage:
- Size: 385 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [ARCHIVED] MOVED TO the preact-start repository
# vinxi-preact
A small PoC Preact metaframework built on top of Vinxi.
## How to use
1. Clone the repository
2. Run `yarn install`
3. Include your routes in the `app/src/routes` folder
- All `.tsx` files are exposed as routes
- `/posts/index.tsx` and `/posts.tsx` are equivalent
- route params are supported via `[param]` syntax in the folder name
- to preload data, export a `loader` function in the route file. This function will be called both on the server and the client
4. Run `yarn start`