@ni/fast-react-wrapper
v10.1.5
Published
A utility for wrapping web components for use in React.
Downloads
38
Readme
FAST React Wrapper
The fast-react-wrapper package contains a utility that enables automatically wrapping Web Components in a React component for ease of integration into React projects. This @ni/fast-react-wrapper library is a fork of @microsoft/fast-react-wrapper.
Getting Started
Installing from NPM
To install the fast-react-wrapper library, use npm as follows:
npm install @ni/fast-react-wrapperWithin your JavaScript or TypeScript code, you can then and use the wrapper like this:
import React from 'react';
import { provideReactWrapper } from '@ni/fast-react-wrapper';
const { wrap } = provideReactWrapper(React);
const MyComponent = wrap(MyComponent);For additional wrapper settings and more information on integrating with Design Systems, see the FAST 1.x: React integration docs.
