> For the complete documentation index, see [llms.txt](https://react-epic.gitbook.io/deviation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://react-epic.gitbook.io/deviation/master.md).

# Home Page

A DI System for React

## Introduction

Deviation is a DI System for React. Its purpose is to share the state and actions between components but still keep your code as simple  and readable as possible.

![](https://3677509528-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ3uj26s2i1DcfvfEC-%2F-LQqVDzwZE2y9CTq4Wqa%2F-LQqVHP6VWHcqqMQW4eM%2FDeviationBanner.png?alt=media\&token=6a9afc7c-4883-4bd8-9027-05e1e99c18f6)

## Installation

You can install Deviation by either using PNPM, Yarn or NPM

**PNPM**

```bash
$ pnpm add deviation
```

**Yarn**

```bash
$ yarn add deviation
```

**NPM**

```bash
$ npm install --save deviation
```

Then you can import the component into your app:

```typescript
import { Store, Deviation, Inject } from 'deviation'
```
