> For the complete documentation index, see [llms.txt](https://help.form.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.form.io/dev/enterprise-form-builder-module/application-integration/react-applications/react-context-provider.md).

# React Context Provider

EnterpriseFormBuilderProvider is React context provider that initializes the Enterprise Form Builder Module environment and provides access to Form.io project configuration, license key, and authentication state.

### Summary <a href="#summary" id="summary"></a>

The `EnterpriseFormBuilderProvider` wraps your application and provides essential context for all enterprise form builder components and hooks. It automatically loads project information, roles, and sets up the Form.io license key. This provider must be used within a `FormioProvider` from `@formio/react`.

### Props <a href="#props" id="props"></a>

| Prop         | Type        | Required | Description                                                        |
| ------------ | ----------- | -------- | ------------------------------------------------------------------ |
| `licenseKey` | `string`    | Yes      | Your Form.io enterprise license key                                |
| `tag`        | `string`    | Yes      | Tag used to filter forms and resources                             |
| `children`   | `ReactNode` | Yes      | Child components that will have access to the form builder context |

### Usage Example <a href="#usage-example" id="usage-example"></a>

```tsx
import { EnterpriseFormBuilderProvider } from '@formio/enterprise-form-builder-react';
import { FormioProvider } from '@formio/react';

function App() {
  return (
    <FormioProvider 
      projectUrl="https://your-project.form.io" 
      baseUrl="https://your-project.form.io"
    >
      <EnterpriseFormBuilderProvider 
        licenseKey="your-license-key"
        tag="common"
      >
        {/* Your application components */}
      </EnterpriseFormBuilderProvider>
    </FormioProvider>
  );
}
```

### Related Hooks <a href="#related-hooks" id="related-hooks"></a>

* [React Hook Reference](/dev/enterprise-form-builder-module/application-integration/react-applications/react-hook-reference.md#useenterpriseformbuilder) - Access the provider context


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.form.io/dev/enterprise-form-builder-module/application-integration/react-applications/react-context-provider.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
