@annotatejs/react
v0.0.7
Published
React Annotate - A library to annotate and collaborate on anything anywhere
Maintainers
Readme
React Annotate
A library to annotate and collaborate on anything anywhere.
Install
First, install the library:
npm install @annotatejs/react
# or
yarn add @annotatejs/reactThen drop it into any page:
import { AnnotationPlugin } from '@annotatejs/react';
const App = () => {
return (
<div>
<AnnotationPlugin />
{/* other components */}
</div>
);
};FAQ
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';Publish
- Bump the version.
- Run the publish script under the monorepo root:
# dry run
yarn publish-package:test
# prod run
yarn publish-package:prod