# @lyo/react

A browser-compatible version of [react](https://www.npmjs.com/package/react) built automatically with [Lyo](https://github.com/bokub/lyo).

[![Version](https://flat.badgen.net/npm/v/@lyo/react)](https://www.npmjs.com/package/@lyo/react)
[![Build](https://bokub.github.io/lyo/badge-flat.svg)](https://www.npmjs.com/package/@lyo/react)
[![Hits](https://data.jsdelivr.com/v1/package/npm/@lyo/react/badge)](https://www.jsdelivr.com/package/npm/@lyo/react)

## Usage

#### In a browser
```html
<script src="https://cdn.jsdelivr.net/npm/@lyo/react"></script>

<script>
  react.createRef();
  react.Component(foo, bar, baz);
  react.PureComponent(foo, bar, baz);
  react.createContext(foo, bar);
  react.forwardRef(foo);
  react.lazy(foo);
  react.memo(foo, bar);
  react.createElement(foo, bar, baz);
  react.cloneElement(foo, bar, baz);
  react.createFactory(foo);
  react.isValidElement(foo);
</script>
```

#### In Node.js

```sh
# Install
npm i @lyo/react
```

```js
const react = require('@lyo/react')

react.createRef();
react.Component(foo, bar, baz);
react.PureComponent(foo, bar, baz);
react.createContext(foo, bar);
react.forwardRef(foo);
react.lazy(foo);
react.memo(foo, bar);
react.createElement(foo, bar, baz);
react.cloneElement(foo, bar, baz);
react.createFactory(foo);
react.isValidElement(foo);
```

## Disclaimer

This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.

Use at your own risk