mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Update readme
This commit is contained in:
@@ -32,11 +32,7 @@ export function Layout(props: { title: string; children: React.ReactNode }) {
|
||||
|
||||
<div style={{ height: "30px" }}></div>
|
||||
<h3>{props.title}</h3>
|
||||
<p>
|
||||
<a className="App-link" href="https://bun.sh/docs" target="_blank" rel="noopener noreferrer">
|
||||
Read the docs →
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<div style={{ height: "30px" }}></div>
|
||||
{props.children}
|
||||
</article>
|
||||
|
||||
@@ -18,10 +18,4 @@ The following files are the most important:
|
||||
|
||||
- `dev.tsx`: Generates a browser build of all `pages` using `Bun.build`, then starts a dev server that handles incoming requests. For paths like `/` and `/settings`, the server will render the appropriate page in `pages` to static HTML and return the result. The returned HTML includes a `<script>` tag that imports a bundled version of `hydrate.tsx`.
|
||||
- `hydrate.tsx`: A script that hydrates the static HTML returned by the server.
|
||||
|
||||
To learn more about React.js, take a look at the following resources:
|
||||
|
||||
- [React.js Documentation](https://reactjs.org/docs/getting-started.html) - learn about React.js features.
|
||||
- [Learn React.js](https://reactjs.org/tutorial/tutorial.html) - an interactive React.js tutorial.
|
||||
|
||||
You can check out the [React.js GitHub repository](https://github.com/facebook/react) - your feedback and contributions are welcome!
|
||||
- `pages/*.tsx`: A set of pages. Incoming requests are resolved against this directory using Next.js-style routing.
|
||||
|
||||
Reference in New Issue
Block a user