Hi,
I am following through the documentation from https://surveyjs.io/Documentation/Library to create a survey with combination of JSON and code in a react app.
I added the the below line in the react component code as a starter but it is throwing an exception. Is the dynamic creation of question with code supported in the react version? If yes, is there a sample code that can be provided.
JavaScriptvar survey = new Survey.Survey(json);
CodereactSurvey.tsx:365 Uncaught TypeError: Cannot set property 'renderCallback' of undefined
at Survey.setSurveyEvents (reactSurvey.tsx:365)
at Survey.createSurvey (reactSurvey.tsx:329)
at new Survey (reactSurvey.tsx:27)
Thanks in advance.