> For the complete documentation index, see [llms.txt](https://docs.conanjs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.conanjs.io/api/main-classes/conan.md).

# Conan

The class Conan contains the following methods:

### ***light\<DATA>***

*light* is the method we use to create a simple Conan State without passing reducers and actions

| Input Params |                                                                                                                                |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| name         | <p><strong>Type:</strong>  <code>string </code><em><code>required</code></em></p><p>the name we want to use for this state</p> |
| initialData  | <p><strong>Type:</strong>  <code>DATA</code></p><p> the initial data we want to have when the state is created</p>             |
| nature       | <p><strong>Type:</strong>  FlowEventNature </p><p>TBC: Que mierdas es esto Alberto?</p>                                        |

| Returns    |                         |
| ---------- | ----------------------- |
| ConanState | The newly created state |

### ***state\<DATA, REDUCERS extends Reducers\<DATA> = {}, ACTIONS = any>***

*state* is the method we use to create a Conan State when we need to add extra reducers and or actions

| Params     |                                                                                                                                                             |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ***data*** | <p><strong>Type:</strong>  <code>StateDef </code><em><code>required</code></em></p><p>the StateDef object that contains our custom actions and reducers</p> |

| Return type |                         |
| ----------- | ----------------------- |
| ConanState  | The newly created state |
