email-builder-js
email-builder-js copied to clipboard
how can i render the component in a react vite app
after instaltion into react v18 app and installation is done using (npm install --save @usewaypoint/email-builder) , i cann't import the email builder neither import { EmailBuilder } from "@usewaypoint/email-builder"; nor import EmailBuilder from "@usewaypoint/email-builder";
Hi you'll have to import all editor blocks to define an editor, then import it. This is how they implement: https://github.com/usewaypoint/email-builder-js/blob/main/packages/editor-sample/src/documents/editor/core.tsx, https://github.com/usewaypoint/email-builder-js/blob/main/packages/editor-sample/src/documents/editor/core.tsx