Mixins are going away eventually. Would the right way to use this for ES6 be to make it some sort of higher-order component? Something like:
class FormDataComponent extends React.Component
And then I'd do
class MyComponent extends FormDataComponent
I took a quick stab at this following a pattern I found here, but was short on time and didn't get very far.
Before I go further, I'd like to know if you have a different idea on how else to bring the formdata concept into ES6 React. Thanks!
Mixins are going away eventually. Would the right way to use this for ES6 be to make it some sort of higher-order component? Something like:
class FormDataComponent extends React.ComponentAnd then I'd do
class MyComponent extends FormDataComponentI took a quick stab at this following a pattern I found here, but was short on time and didn't get very far.
Before I go further, I'd like to know if you have a different idea on how else to bring the formdata concept into ES6 React. Thanks!