Skip to content
Remirror
DocsAPIGitHub

RemirrorManager

RemirrorManager is a React component that injects an ExtensionManager instance into the React context.

import React, { FC } from 'react';
import { Bold } from '@remirror/core-extensions';
import { useRemirrorManager, RemirrorProvider } from '@remirror/react';
const Editor: FC = ({ children }) => {
return (
<RemirrorManager>
<RemirrorExtension Constructor={Bold} />
{() => {
const manager = useRemirrorManager(); // Picked from the context
return <RemirrorProvider manager={manager}>{children}</RemirrorProvider>;
}}
</RemirrorManager>
);
};
Edit the page on GitHub
Previous:
Extension