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

Change the way the components are called #14

Open
makenosound opened this issue Apr 18, 2016 · 1 comment
Open

Change the way the components are called #14

makenosound opened this issue Apr 18, 2016 · 1 comment

Comments

@makenosound
Copy link
Contributor

Components are called as though they’re methods on an object:

{
  fields: {
    textField: () => ...
  }
}

Which doesn’t give us much flexibility for handling calls to each component in any other way. Perhaps each component type should return a function that does the lookup for a field/component type instead.

@makenosound
Copy link
Contributor Author

Should mention: this is relevant for formalist-serialize-react particularly, where we don’t care what the field type is most of the time: we return the same component for all of them.

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

1 participant