# @ssr-coin/react

Latest version **0.3.4** (published 2019-07-30) · 0 weekly downloads

## Install

```sh
npm install @ssr-coin/react
pnpm add @ssr-coin/react
yarn add @ssr-coin/react
bun add @ssr-coin/react
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.4 |
| Published | 2019-07-30 |
| First published | 2019-07-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 57 |
| Maintainers | brillout |

## Links

- npm: https://www.npmjs.com/package/@ssr-coin/react
- Repository: https://github.com/reframejs/ssr-coin
- Homepage: https://github.com/reframejs/ssr-coin#readme
- Issues: https://github.com/reframejs/ssr-coin/issues
- npm.io page: https://npm.io/package/@ssr-coin/react

## Dependencies (3)

- [@ssr-coin/html](https://npm.io/package/@ssr-coin/html.md) 0.3.4
- [@ssr-coin/render-react](https://npm.io/package/@ssr-coin/render-react.md) 0.3.4
- [@ssr-coin/webpack-react](https://npm.io/package/@ssr-coin/webpack-react.md) 0.3.4

## Recent versions

- 0.3.4 (latest) — 2019-07-30
- 0.4.0 (next) — 2019-07-31
- 0.3.3 — 2019-07-30

## README

<!---






    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/plugins/react/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/plugins/react/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/plugins/react/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/plugins/react/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/plugins/react/readme.template.md` and run `npm run docs` (or `yarn docs`).






-->

`ssr-coin` + React = :heart:

# `@ssr-coin/react`

Use `ssr-coin` with [React](https://github.com/facebook/react).

### Usage

Install `@ssr-coin/react`.

~~~shell
$ npm install @ssr-coin/react
~~~

The plugin is automatically loaded and
the `view` property of your page configs is now rendered with React.

### Example

~~~js
// /examples/basics/pages/welcome.page.js

import React, {useEffect, useState} from 'react';

export default {
  route: '/',
  view: () => (
    <div>
      Welcome to ssr-coin.
      <Time/>
    </div>
  ),
};

function Time() {
  const getTime = () => new Date().toLocaleTimeString();

  const [time, setTime] = useState(getTime());

  useEffect(() => {
    const timeout = setInterval(() => setTime(getTime()), 100);
    return () => clearTimeout(timeout);
  }, []);

  return (
    <div>
      The time is: <span>{time}</span>
    </div>
  );
}
~~~

<!---






    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/plugins/react/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/plugins/react/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/plugins/react/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/plugins/react/readme.template.md` and run `npm run docs` (or `yarn docs`).












    WARNING, READ THIS.
    This is a computed file. Do not edit.
    Instead, edit `/plugins/react/readme.template.md` and run `npm run docs` (or `yarn docs`).






-->

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