Improve documentation #19
Labels
docs
Changes to the documentation
good first issue
Good for newcomers
help wanted
Extra attention is needed
The example in the README is very basic (by design) but there have been numerous queries recently about more advanced usage so I think it's time we expand the documentation to cover these.
Initially, this could be part of the README, but I'd prefer keeping the README fairly light and having a
docs
directory that can explain features, concepts and techniques in more details (a.md
file per topic).We could look at generating a
gitbook
,docusaurus
,docz
or whatever the documentation site flavour of the month is from these docs at some point in the future (unless anyone want to set this up now).Another thing that I am aware of (from experience 😞) is that docs written by the author are often not very useful to users (especially new users), as there is so much implied understanding that gets baked in. That's why I'm asking for help for others to write these docs. Include any gotchas or hiccups you hit along the way.
It doesn't have to be completely comprehensive from the get-go and we can improve and expand them as we go, so any and all contributions are welcome towards them.
Topics to cover:
wrapper
(renderHook
option)initialProps
(renderHook
option) and thenewProps
(rerender
parameter)waitForNextUpdate
dom errors(no more dom to cause errors (Use react-test-renderer instead react-testing-library #40).current
?There probably more that can also be included so feel free to go with want makes sense to you. I'm happy to update the checklist if you want to make suggestions in the comments here.
Note: I'm marking these off as we go, but that does not mean what is shown in the work-in-progress site as at all the final version and/or closed to improvements.
The text was updated successfully, but these errors were encountered: