question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Beginner friendly docs

See original GitHub issue

I wanted to bring attention to something I’ve experienced when integrating this component into the app I’m building. I like this component a lot as it covers accessibility and gives me a lot of flexibility in styling and functionality. I’ve gone through a lot of autocompletes before I found this one, so thank you.

But perhaps a more beginner friendly documentation would be useful for people like me who are junior web developers that rely on these solutions. In particular, I couldn’t figure out when to use onStateChange and onInputValueChange properly because I kept thinking of uncontrolled components as those handled by the DOM that make use of refs, while controlled components as state based. It took time and my co-worker to point out that I was thinking about this in the wrong context.

onInputValueChange can be elaborated on and the definition of “controlled” in this context can be more clear as it is done in the explanation of onStateChange. More on why they are different and how to use them.

More examples explaining how to use some of the functions, such as onOuterClick and getRootProps could also help.

With that said, thanks for building this. There are a lot of advanced topics covered like render props vs HOC and I appreciate all the links that explain these topics. I’m learning a lot in the process.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
kentcdoddscommented, Nov 23, 2017

Thanks for the feedback! We definitely could use improved docs. I’m also thinking that I’ll make a video course for egghead.io about downshift which should help!

1reaction
ghostcommented, Mar 29, 2018

hi @kentcdodds I finally figure it out 😃 i was passing in rendresuggestion( itemProps: getItemProps({ item: suggestion.label }), instead of suggestion.label now i am passing the whole object of what was selected ," itemProps: getItemProps({ item: suggestion }), " .

2)Then i am passing to my Downshift itemToString={this.itemToString} onChange={this.handleChange} the itemstring you told me about earlier , and now from my onchange am getting the id of what was selected so i can save it later. here is a working example. now am trying to figure out where to put a text when no matches are found . https://codesandbox.io/s/yjy7859p0x

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Docs For Beginners Teaching Resources - TPT
5 lessons for any beginner Google Docs user. Adding pictures, font and text, layering, spell check, and making lists.
Read more >
Google Drive and Docs for Beginners 2021 - Amazon.com
This book will give you an overview of Google drive and docs, the different applications that connect with it, the history, its importance...
Read more >
Beginner Friendly Learning Resources - Google Docs Link - Tools ...
... dating back to 2017, I think this still helpful for a beginner to lean info-sec. The Google Docs is well organized, but...
Read more >
Beginner friendly documentation - #80 by ludeeus - Feature ...
But I support your general idea. Just like we have the “month of WTH” going on right now, it would be nice to...
Read more >
The new document is less beginner-friendly. : r/elasticsearch
10 votes, 20 comments. I'm a beginner at elasticsearch. I've searched for some learning advice and many of them suggest I read the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found