Skip to content
Feedback

Use Inkwell with React

Wrap the editor in a component with refs and effects.

On this page

Wrap the editor in a component with refs and effects. Follow the steps below — it takes just a few minutes.

Before you begin#

  • Node.js 18 or newer
  • A project that uses npm, pnpm or yarn

Steps#

  1. Install#

    npm install inkwell @inkwell/react

  2. Render the component#

  3. Access the editor#

    With a ref for advanced APIs.

Tip

Avoid re-creating the editor on every render — keep options stable.

Still stuck?#

Search existing GitHub issues first. When you open a new one, include your Inkwell version, browser and a minimal example on CodeSandbox.

Was this article helpful?