T.B.D
A server side rendering framework for zheleznaya
This is like Next.js or Nuxt.js.
import { h, Component } from "nzxt/h"
const Page: Component<{ name: string }> = ({ name }) => {
return <div>Hello {name}!</div>
}
Page.getInitialProps = async () => {
const name = await fetch("http://example.com").then(it => it.text());
return { name };
}
export default Page;
React like frontend framework.
See document