# react-ssr-renderer

> This project aims to do a server side rendering of a react application.

Latest version **1.1.0** (published 2021-02-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-ssr-renderer
pnpm add react-ssr-renderer
yarn add react-ssr-renderer
bun add react-ssr-renderer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-02-24 |
| First published | 2021-02-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 30.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | knisterpeter |

## Links

- npm: https://www.npmjs.com/package/react-ssr-renderer
- npm.io page: https://npm.io/package/react-ssr-renderer

## Dependencies (2)

- [resolve](https://npm.io/package/resolve.md) 1.20.0
- [cross-fetch](https://npm.io/package/cross-fetch.md) 3.0.6

## Recent versions

- 1.1.0 (latest) — 2021-02-24
- 1.0.0 — 2021-02-16

## README

# react-ssr-renderer

This project aims to do a server side rendering of a react application.

The difference to [ReactDOMServer](https://reactjs.org/docs/react-dom-server.html) is the usage of [jsdom](https://github.com/jsdom/jsdom) to do a full render including data-fetching and other asynchronous operations without special apis.

## How it works

The crucial part of the rendering is to decide when we are ready to send the html to the client.

This is done by rendering a node.js `vm` environment with a few wrapped global variables like `Promises`.
We do track all asynchronous work and when nothing is left to do, we return the current rendered state.

---
_Source: https://npm.io/package/react-ssr-renderer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
