createElement is not defined ReferenceError: createElement is not defined

0
I am facing this error while creating an pluggable widget
asked
2 answers
6

Hi  Ajay Chimanpure
Make sure when you are implementing your Pluggable Widgets using React to import createElement from ‘react’
like this for an example : 

import { createElement } from "react";

this imported component will be used on your build process and make sure your environment is running smoothly.
npm run build
npm run start 
>>go to project in studio >> press F4 or Synchronize project directory => to update your widget and voila, happy hacking

answered
0

Thank you for the solution Seif Miehiar.

answered