Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strategy for making this composible for es6? #4

Open
ericdfields opened this issue Jun 17, 2015 · 1 comment
Open

Strategy for making this composible for es6? #4

ericdfields opened this issue Jun 17, 2015 · 1 comment

Comments

@ericdfields
Copy link

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!

@TheLudd
Copy link
Owner

TheLudd commented Jun 18, 2015

I have not explored this concept at all so I do not have any idea on how to move this into ES6 react. But I won't resist any change that is in line with new react conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants