yarn add react-survey-editor
yarn lib
With Redux
import React from 'react'
import SurveyEditor from 'react-survey-editor'
const App = ({ onExport }) => (
<SurveyEditor onExport={onExport} />
)
To dissociate ids generated by the library and those you bring, generated ids are prefixed by '@@'. It allows us to not provide a 'onAdd' method to avoid several server calls.
Name | Type | Default | Required | Description |
---|---|---|---|---|
onExport | (string) => void | () => { } | false | Function called when user click on Save button. |
initialValue | object | See | false | Initial survey value |
locale | string | "enUS" | false | Ant design locale language |
- Add i18n translation
All contributions are welcome.