View Source LiveReact.SSR.ViteJS (live_react v1.0.0-rc.0)

Implements SSR by making a POST request to http://{:vite_host}/ssr_render.

ssr_render is implemented as a Vite plugin. You have to add it to the vite.config.js plugins section.

import liveReactSSRPlugin from "live_vue/vitePlugin"

{
  publicDir: "static",
  plugins: [react(), liveVueSSRPlugin()],
  // ...
}

Summary

Functions

Callback implementation for LiveReact.SSR.render/2.

A handy utility returning path relative to Vite JS host.

Functions

Callback implementation for LiveReact.SSR.render/2.

A handy utility returning path relative to Vite JS host.