Skip to content

react-design-editor is not working in React version 18.2.0 #256

@Ejaz7860

Description

@Ejaz7860

import React from 'react'
import { Canvas } from 'react-design-editor'
const MarketingTool = () => {
return (
<>

MarketingTool


</>

)
}
export default MarketingTool
This code is working fine in React version 16.13.1 but not in a with React version 18.2.0,
getting this error
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

  1. You might have mismatching versions of React and the renderer (such as React DOM)
  2. You might be breaking the Rules of Hooks
  3. You might have more than one copy of React in the same app

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions