# effector-solid

> SolidJS bindings for effector

Latest version **0.23.0** (published 2023-11-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install effector-solid
pnpm add effector-solid
yarn add effector-solid
bun add effector-solid
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.23.0 |
| Published | 2023-11-28 |
| First published | 2022-05-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=11.0.0 |
| Dependencies | 0 |
| Unpacked size | 158.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4854 |
| Author | Zero Bias |
| Maintainers | drevoed, drelliot, sergeysova, lobatik, zero_bias |
| Keywords | solid, solid-js, business, logic, data, flow, state management, state manager, algebraic effects, model, reactive, state, frp, event, effect, functional, store |

## Links

- npm: https://www.npmjs.com/package/effector-solid
- Repository: https://github.com/effector/effector
- Homepage: https://effector.dev
- Issues: https://github.com/effector/effector/issues?q=is:issue+label:effector-solid,effector-solid%2Fscope
- Funding: https://www.patreon.com/zero_bias
- npm.io page: https://npm.io/package/effector-solid

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.23.0 (latest) — 2023-11-28
- 0.23.0-rc.6 — 2023-11-22
- 0.23.0-rc.5 — 2023-11-18
- 0.23.0-rc.4 — 2023-10-18
- 0.23.0-rc.3 — 2023-10-10
- 0.23.0-rc.2 — 2023-10-10
- 0.23.0-rc.1 — 2023-10-04
- 0.22.7 — 2022-12-17
- 0.22.6 — 2022-09-16
- 0.22.5 — 2022-09-16
- 0.22.4 — 2022-09-16
- 0.22.3 — 2022-08-31
- 0.22.2 — 2022-08-01
- 0.22.1 — 2022-07-18
- 0.22.0 — 2022-05-30
- … 1 more at https://npm.io/package/effector-solid/versions

## README

# effector-solid

SolidJS bindings for [effector](https://www.npmjs.com/package/effector)

## Installation

```bash
npm install --save effector effector-solid
```

Or using `yarn`

```bash
yarn add effector effector-solid
```

Or using `pnpm`

```bash
pnpm add effector effector-solid
```

## Usage

```js
import {createStore, combine, createEvent} from 'effector'

import {useUnit} from 'effector-solid'

const inputText = createEvent()

const $text = createStore('').on(inputText, (_, text) => text)

const $size = createStore(0).on(inputText, (_, text) => text.length)

const Form = () => {
  const {
    text,
    size
  } = useUnit({
    size: $size,
    text: $text
  })

  return (
    <form>
      <input
        type="text"
        onInput={e => inputText(e.currentTarget.value)}
        value={text()}
      />
      <p>Length: {size}</p>
    </form>
  )
}
```

- [useUnit](https://effector.dev/docs/api/effector-solid/useUnit) in docs
- [createStore](https://effector.dev/docs/api/effector/createStore) in docs
- [combine](https://effector.dev/docs/api/effector/combine) in docs
- [createEvent](https://effector.dev/docs/api/effector/createEvent) in docs

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