-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1 @@ | ||
Generated with [Bati](https://batijs.dev) ([version 320](https://www.npmjs.com/package/create-bati/v/0.0.320)) using this command: | ||
|
||
```sh | ||
npm create bati --- --react --panda-css --eslint --prettier | ||
``` | ||
|
||
## Contents | ||
|
||
- [React](#react) | ||
|
||
- [`/pages/+config.ts`](#pagesconfigts) | ||
- [Routing](#routing) | ||
- [`/pages/_error/+Page.jsx`](#pages_errorpagejsx) | ||
- [`/pages/+onPageTransitionStart.ts` and `/pages/+onPageTransitionEnd.ts`](#pagesonpagetransitionstartts-and-pagesonpagetransitionendts) | ||
- [SSR](#ssr) | ||
- [HTML Streaming](#html-streaming) | ||
|
||
## React | ||
|
||
This app is ready to start. It's powered by [Vike](https://vike.dev) and [React](https://react.dev/learn). | ||
|
||
### `/pages/+config.ts` | ||
|
||
Such `+` files are [the interface](https://vike.dev/config) between Vike and your code. It defines: | ||
|
||
- A default [`<Layout>` component](https://vike.dev/Layout) (that wraps your [`<Page>` components](https://vike.dev/Page)). | ||
- A default [`title`](https://vike.dev/title). | ||
- Global [`<head>` tags](https://vike.dev/head-tags). | ||
|
||
### Routing | ||
|
||
[Vike's built-in router](https://vike.dev/routing) lets you choose between: | ||
|
||
- [Filesystem Routing](https://vike.dev/filesystem-routing) (the URL of a page is determined based on where its `+Page.jsx` file is located on the filesystem) | ||
- [Route Strings](https://vike.dev/route-string) | ||
- [Route Functions](https://vike.dev/route-function) | ||
|
||
### `/pages/_error/+Page.jsx` | ||
|
||
The [error page](https://vike.dev/error-page) which is rendered when errors occur. | ||
|
||
### `/pages/+onPageTransitionStart.ts` and `/pages/+onPageTransitionEnd.ts` | ||
|
||
The [`onPageTransitionStart()` hook](https://vike.dev/onPageTransitionStart), together with [`onPageTransitionEnd()`](https://vike.dev/onPageTransitionEnd), enables you to implement page transition animations. | ||
|
||
### SSR | ||
|
||
SSR is enabled by default. You can [disable it](https://vike.dev/ssr) for all your pages or only for some pages. | ||
|
||
### HTML Streaming | ||
|
||
You can enable/disable [HTML streaming](https://vike.dev/stream) for all your pages, or only for some pages while still using it for others. | ||
Person website. Not more. Not less. |