Polotno
Misc

React Version Support

Polotno targets React 19 by default; React 18 is still available for now

Polotno targets React 19 by default. Just install the package:

npm i polotno

This is the 4.x line and the recommended choice for new and existing projects.

React 18 (legacy, available for now)

A separate 3.x line still supports React 18, published under the next-react18 tag:

npm i polotno@next-react18

Both lines track the same features today, but React 18 support is being phased out. If you're on React 18, plan to upgrade to React 19 so you can move to the default 4.x line — we recommend not starting new projects on the React 18 line.

Migrating from Polotno 2? The default UI changed in 3.x / 4.x. See the Polotno 4 Migration guide.

Troubleshooting

If you see a peer dependency error like this during install:

npm error Could not resolve dependency:

npm error peer react@"^18.x" from polotno

…your React version doesn't match the installed line. On React 19 use npm i polotno; if you're still on React 18, use npm i polotno@next-react18.

On this page