Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

[FormBuilder] Take a look for react performance #90

Closed
MangelMaxime opened this issue Nov 28, 2018 · 4 comments
Closed

[FormBuilder] Take a look for react performance #90

MangelMaxime opened this issue Nov 28, 2018 · 4 comments

Comments

@MangelMaxime
Copy link
Owner

I think the library "BasicFields" should by default offer optimized react experience.

@fergusmeiklejohn
Copy link
Contributor

I think BasicFields should offer a "withDefaults" experience. Most apps might only ever need BasicFields.

@MangelMaxime
Copy link
Owner Author

What do you mean by "withDefaults" ?

@fergusmeiklejohn
Copy link
Contributor

Ideally we would have the most common types of field and they would come with sensible defaults including validation as standard. I was wondering about using validator.js for this:
https://github.com/chriso/validator.js
https://www.npmjs.com/package/@types/validator
Like you know how in html a Form at it's most basic is:

  <form>
    <input name="name" placeholder="Name" />
    <input name="email" placeholder="Email" type="email" />
    <input type="submit">
  </form>

I wonder if we could make BasicFields (maybe in Fulma?) as close as possible to this sort of simple experience, but of course with all the power of F# and this library behind the simple interface

Apologies this has little to with React, more to do with "optimized experience"

@MangelMaxime
Copy link
Owner Author

I moved this issue to another repository, and further work will take place there.

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

No branches or pull requests

2 participants