Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const RemirrorSSR = ({
attributes,
manager,
state,
editable,
}: RemirrorSSRProps) => {
const outerProps = mapProps(attributes);
const ssrElement = ReactSerializer.fromExtensionManager(manager).serializeFragment(state.doc.content);
const transformedElement = manager.ssrTransformer(ssrElement);
return (
<div>
{transformedElement}
</div>
);
};