rari 0.13.6

rari: Runtime Accelerated Rendering Infrastructure - A high-performance React Server Components framework powered by Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// oxlint-disable vars-on-top, no-var
/* eslint-disable unused-imports/no-unused-vars, no-undef, style/object-curly-spacing */
// @ts-nocheck
const startPage = performance.now()
const PageComponent = globalThis['{page_component_id}']
if (!PageComponent || typeof PageComponent !== 'function')
  throw new Error('Page component {page_component_id} not found')

const pageProps = {page_props_json}
const pageElement = React.createElement(PageComponent, pageProps)
const isAsync = PageComponent.constructor.name === 'AsyncFunction'

timings.isAsync = isAsync
timings.pageRender = performance.now() - startPage