# @constgen/neutrino-react-scoped-styles

> Neutrino middleware for isolation of React components styles

Latest version **1.9.2** (published 2020-09-28) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @constgen/neutrino-react-scoped-styles
pnpm add @constgen/neutrino-react-scoped-styles
yarn add @constgen/neutrino-react-scoped-styles
bun add @constgen/neutrino-react-scoped-styles
```

## 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.9.2 |
| Published | 2020-09-28 |
| First published | 2020-04-06 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 41.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Constantine Genchevsky |
| Maintainers | constgen |
| Keywords | neutrino, neutrino-middleware, middleware, preset, webpack, react, scoped, styles |

## Links

- npm: https://www.npmjs.com/package/@constgen/neutrino-react-scoped-styles
- Repository: https://github.com/constgen/constgen-neutrino
- Homepage: https://github.com/constgen/constgen-neutrino/tree/master/packages/react-scoped-styles
- Issues: https://github.com/constgen/constgen-neutrino/issues
- npm.io page: https://npm.io/package/@constgen/neutrino-react-scoped-styles

## Dependencies (2)

- [css-tree](https://npm.io/package/css-tree.md) 1.0.0-alpha.39
- [source-map](https://npm.io/package/source-map.md) 0.7.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.9.2 (latest) — 2020-09-28
- 1.4.1 (pnpm-temp) — 2020-04-30
- 1.5.0 — 2020-08-19
- 1.3.0 — 2020-04-12
- 1.0.0 — 2020-04-06

## README

# @constgen/neutrino-react-scoped-styles

[![npm](https://img.shields.io/npm/v/@constgen/neutrino-react-scoped-styles.svg)](https://www.npmjs.com/package/@constgen/neutrino-react-scoped-styles)
[![npm](https://img.shields.io/npm/dt/@constgen/neutrino-react-scoped-styles.svg)](https://www.npmjs.com/package/@constgen/neutrino-react-scoped-styles)

[Neutrino](https://neutrino.js.org) middleware for isolation of React components styles using [`react-scoped-styles`](https://www.npmjs.com/package/react-scoped-styles). Applied only to styles imported from JSX and TSX files.

## Requirements

- Node.js v10+
- Neutrino v9
- Webpack v4

## Installation

`@constgen/neutrino-react-scoped-styles` can be installed from NPM. You should install it to `"dependencies"` (--save) or `"devDependncies"` (--save-dev) depending on your goal.

```bash
npm install --save @constgen/neutrino-react-scoped-styles
```

## Usage

### In preset

Require this package and plug it into Neutrino. The middleware has no options:

```js
let reactScopedStyles = require('@constgen/neutrino-react-scoped-styles')

neutrino.use(reactScopedStyles())
```

### In **neutrinorc**

The middleware also may be used together with another presets in Neutrino rc-file, e.g.:

**.neutrinorc.js**

```js
let reactScopedStyles = require('@constgen/neutrino-react-scoped-styles')

module.exports = {
   use: [
      reactScopedStyles()
   ]
}
```

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