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

Documentation 2.0 #252

Open
2 of 5 tasks
kettanaito opened this issue May 13, 2018 · 5 comments
Open
2 of 5 tasks

Documentation 2.0 #252

kettanaito opened this issue May 13, 2018 · 5 comments
Labels
enhancement Enhances existing functionality. question
Milestone

Comments

@kettanaito
Copy link
Owner

kettanaito commented May 13, 2018

What

Suggest to consider implementing a more profound documentation.

Why

  1. Better developer experience.
  2. Better newcomers guidance.
  3. Better overall improvement from the solution.

How

  1. Research on service solutions.
  2. Potentially develop a small doc app.
  3. Live code examples are very anticipated.

Roadmap

  • Review the entire documentation for inconsistency, confusing and lengthy explanations
  • Add explanation of valid/invalid separation
  • Provide use cases for createField custom options. Explain options more effectively, eliminate confusion. Grant a clear picture what are those options for, and what they are not.
  • Change "Field group" example in README to demonstrate all possibilities of field groups (split groups, nesting)
  • Include comparison section between different form solutions (redux-form, formik, you-name-it?)
@kettanaito kettanaito added enhancement Enhances existing functionality. question labels May 13, 2018
@kettanaito kettanaito added this to the 2.0 milestone May 13, 2018
@kettanaito
Copy link
Owner Author

As one of the readers has pointed out, it's nice to illustrate some benefits of the validation based on pure resolvers. It can cover even complex scenarios quite easily. Perhaps, having a list of various validation examples (only schemas) would be nice to have.

@kettanaito
Copy link
Owner Author

I must say that the updated Gitbook looks very promising. If I be able to integrate a live examples there, then the place for Docs 2.0 is defined.

@kettanaito
Copy link
Owner Author

kettanaito commented Aug 28, 2018

Need to consider to add the comparison section to the README page.

Comparison illustrate the same scenarios achieved using different form libraries. It will help people to understand the differences.

Possible scenarios

  1. Simple form.
  2. Nested form.
  3. Async validation.

@johnpreed
Copy link

What I find lacking is documentation on how to use field options like mapPropsToField, enforceProps, mapping/setting initial values of components, beforeRegister, shouldUpdateRecord. Detailed explanations of these along with examples would go a long way.

@kettanaito
Copy link
Owner Author

kettanaito commented Mar 19, 2019

You are completely right, @johnpreed. I will try to take the original requirements why those methods were implemented, and put them in a form of examples.

Update: Please take a look at the updated createField Options. Let me know if it's more clear now. Thanks.

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

No branches or pull requests

2 participants