You are here
View more context
I might be able to decouple redux-form to a HOC perhaps (or the other way, make FormBuilder the HOC)
FormBuilder
😄 this would make for an interesting exercise, maybe over my free time during christmas
ha, yeah I see that what I want to do is not exactly the main use case you guys are working on right now
do you mind me asking what you're trying to do?
I think this decoupling will be my next "hobbie" after I finish the react HTMLEditorField component hobbie 😛
I’ll build a web app, and was hoping to be able to define forms in php, and use form builder to render them in small decoupled react components
no redux, no nothing - in the old days I used to do this by just calling a form via AJAX, and using the html markup
Ah ok, that's even simpler than what the FormBuilder did before redux-form was implemented
@flamerohr my hacking goes on... I'm able to have form builder display some basic fields like this:
jslet schemaUrl = '/formschematest/schema/TestForm'; $.get(schemaUrl, function(data) { const props = { form: 'MyForm', schema: data, baseFormComponent: Form, baseFieldComponent: TextField }; ReactDOM.render( <div> <FormBuilder {...props} /> </div>, document.getElementById('approot') ); });