Closed bentatum closed 8 years ago
with this, a user would be able to define element types globally.
static childContextTypes = { joifulReactForms: PropTypes.object }; getChildContext() { return { joifulReactForms: { JoifulInput: { types: { text: ..., select: ..., dateTime: ..., ... } } } } }
If the elementTypes prop on a JoifulForm instance is set, that is currently set to override the context setting. Thoughts on that approach?
with this, a user would be able to define element types globally.