# @poach/react

> Poach configuration recipe for react.

Latest version **0.0.3** (published 2020-06-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @poach/react
pnpm add @poach/react
yarn add @poach/react
bun add @poach/react
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2020-06-07 |
| First published | 2020-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Marcello Montemagno |
| Maintainers | marcellomontemagno |
| Keywords | webpack, babel, eslint, typescript, umd, react |

## Links

- npm: https://www.npmjs.com/package/@poach/react
- Repository: https://github.com/marcellomontemagno/poach
- Issues: https://github.com/marcellomontemagno/poach/issues
- npm.io page: https://npm.io/package/@poach/react

## Dependencies (7)

- [react](https://npm.io/package/react.md) 16.13.1
- [react-dom](https://npm.io/package/react-dom.md) 16.13.1
- [@types/react](https://npm.io/package/@types/react.md) 16.9.35
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) 16.9.8
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) 7.9.4
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) 7.20.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) 4.0.2

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2020-06-07
- 0.0.2 — 2020-06-07
- 0.0.1 — 2020-05-29

## README

# Poach-react

[Poach](https://github.com/marcellomontemagno/poach) configuration recipe for [React](https://reactjs.org/).

Needs `@poach/core` installed and configured.

# Installation

`npm i --save-dev @poach/react`

# Configuration

Extend your `babel.config.js`

```js
let config = require('@poach/core/config/babel/babel.core');
//...
config = require('@poach/react/config/babel/babel.core')(config);
//...
module.exports = config;
```

Extend your `.eslintrc.js`

```js
let config = require('@poach/core/config/eslint/eslint.core');
//...
config = require('@poach/react/config/eslint/eslint.core')(config);
//...
module.exports = config;
```

Extend your `webpack.core.js`

```js
let config = require('@poach/core/config/webpack/webpack.core')
//...
config = require('@poach/react/config/webpack/webpack.core')(config);
//...
module.exports = config;
```

Render you first react component in `src/index.js`

```jsx
import React from 'react';
import ReactDOM from 'react-dom';

const div = document.createElement("div");
div.setAttribute("id", "react-root");
document.body.appendChild(div);

ReactDOM.render(<h1>React hello world!</h1>, div);
```

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