Skip to main content

Brandi-React

Brandi-React is the React bindings layer for Brandi.

It lets your React components get dependencies from Brandi containers.

Installation

Brandi-React requires React 16.8 or later. You'll also need to install Brandi.

# NPM
npm install brandi-react
# Yarn
yarn add brandi-react

The Brandi-React source code is written in TypeScript but we precompile both CommonJS and ESModule builds to ES2018.

Additionally, we provide builds precompiled to ESNext by esnext, esnext:main and esnext:module fields.

TypeScript type definitions are included in the library and do not need to be installed additionally.

API Reference