# EventrixProvider

EventrixProvider is required when You want use hooks, hocs and component decorators. Provider use react context API to pass all required data by context to hocs, hooks and component decorators. Use EventrixProvider in Your main component of Your application.

{% tabs %}
{% tab title="Javascript" %}

```jsx
import React from "react";
import { EventrixProvider } from "eventrix";
import eventrix from "./eventrix";
import ListComponent from "./ListComponent";

const App = () => {
  return (
    <EventrixProvider eventrix={eventrix}>
      <div className="app-wrapper">
        <h1>MY NEW APP</h1>
        <div className="context">
          <ListComponent />
        </div>
      </div>
    </EventrixProvider>
  );
}

export default App;
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eventrix.gitbook.io/eventrix/context/eventrixprovider.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
