1.0.2 • Published 3 years ago

react-ss v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

React SSR

A library for SSR using React 18

Installation

# Using NPM
npm i react-ss

# Using yarn
yarn add react-ss

Example usage

import SSR from "react-ss";
import express from "express";

const renderer = new SSR();

// Create the root to render
await renderer.createRoot();

// Create an express server
const app = express();

// Add the middleware
app.use(async (req, res) => {
    // Render the content
    const content = await renderer.renderToHTML("/home");

    // Write the content to response
    res.end(content);
});

// Start the server
app.listen(8080);
1.0.3-alpha.1

3 years ago

1.0.2

3 years ago

1.0.2-beta.8

3 years ago

1.0.2-beta.7

3 years ago

1.0.2-beta.6

3 years ago

1.0.2-beta.5

3 years ago

1.0.2-beta.4

3 years ago

1.0.2-beta.3

3 years ago

1.0.2-beta.2

3 years ago

1.0.2-beta.1

3 years ago

1.0.2-alpha.1

3 years ago

1.0.1

3 years ago

1.0.1-beta.1

3 years ago

1.0.1-alpha.14

3 years ago

1.0.1-alpha.13

3 years ago

1.0.1-alpha.12

3 years ago

1.0.1-alpha.11

3 years ago

1.0.1-alpha.9

3 years ago

1.0.1-alpha.8

3 years ago

1.0.1-alpha.7

3 years ago

1.0.1-alpha.6

3 years ago

1.0.1-alpha.5

3 years ago

1.0.1-alpha.3

3 years ago

1.0.1-alpha.2

3 years ago

1.0.1-alpha.1

3 years ago

1.0.0

3 years ago