Example project using Vite + React and creating surveys using (Opinbox Builder)[https://www.npmjs.com/package/opinbox-builder]
(Any other React setup will work too!)
pnpm create vite@latest
pnpm add opinbox-builder
pnpm add survey-core survey-creator-core survey-react-ui
Import Opinbox-Builder styles into the index.css
file
/* Import the Opinbox-Builder Styles */
@import "opinbox-builder/dist/style.css";
npm run dev
You can register custom expression to SurveyJS following the example in src/custom
or by looking at the SurveyJS Docu
You can also register custom components to SurveyJS following the example in src/components/DummyComponent
or by looking at the SurveyJS Docu
npm run preview