Hooks and components for consuming `remirror` with your fave framework `React`.
npm install @remirror/react> Hooks and components for consuming remirror with your fave framework React.
 
``bash`
yarn add @remirror/react # yarn
pnpm add @remirror/react # pnpm
npm install @remirror/react # npm
For in depth usage with proper code example see the docs.
`tsx
import React, { useCallback } from 'react';
import { fromHtml, RemirrorEventListener } from 'remirror';
import { BoldExtension, ItalicExtension, UnderlineExtension } from 'remirror/extensions';
import { createReactManager, ReactExtensions, Remirror, useRemirror } from '@remirror/react';
type Extension = ReactExtensions
const extensions = () => [new BoldExtension(), new ItalicExtension(), new UnderlineExtension()];
const MyEditor = () => { This is the initial value
const { manager, state, onChange } = useRemirror
extensions,
content: '
stringHandler: 'html',
});
const [value, setValue] = useState(initialValue);
return
};
``