Closed elado closed 8 years ago
https://github.com/salsita/redux-elm/blob/master/docs/composition/README.md
1.
// invalid code const ParentView = ({ model }) => ({ <ChildView model={model.childViewModel} /> }); // correct const ParentView = ({ model }) => ( <ChildView model={model.childViewModel} /> );
2.
const ParentView = ({ model }) => ({ <ChildView model={model.childViewModel} /> }); const ChildView = ({ model, onTextFieldChanged }) => ({ <input type="text" onChange={onTextFieldChanged} value={model.value} /> });
Then where does the ChildView get its onTextFieldChanged?
onTextFieldChanged
Thanks for pointing this out. Actually, you are not the only one raising this issue.
https://github.com/salsita/redux-elm/blob/master/docs/composition/README.md
1.
2.
Then where does the ChildView get its
onTextFieldChanged
?