A library to annotate and collaborate on anything anywhere.
First, install the library:
npm install @annotatejs/react
# or
yarn add @annotatejs/react
Then drop it into any page:
import { AnnotationPlugin } from '@annotatejs/react';
const App = () => {
return (
<div>
<AnnotationPlugin />
{/* other components */}
</div>
);
};
Adding this plugin throws Error: (0 , a.createContext) is not a function
in the Nextjs application with the app
directory
Make sure to only import the plugin on the client side. This will be fixed in the future.
"use client";
import { AnnotationPlugin } from '@annotatejs/react';
- Bump the version.
- Run the publish script under the monorepo root:
# dry run
yarn publish-package:test
# prod run
yarn publish-package:prod