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
publish v3 to npm? #92
Comments
Hey @janusch, 3.0 is almost there! I still have to finish the docs and examples, but the API is pretty stable. I plan to publish 3.0-alpha on npm in a week or two, but for now I'd encourage you to install the 3.0 branch from GitHub. I'm really interested to get any feedback you have on using 3.0, even if "it just works". Let me know how you go. |
Hey, It is also possible that I approached it the wrong way, by trying to hook the autosuggest up with my existing redux store. Thank you for the reply! |
I just added |
I am right now just using an ordinary css stylesheet. Was thinking of switching to sass soon. Maybe the first line makes perfect sensein the dist file, just wondering: Thanks a lot for the quick reply and action, I am looking forward to get it to work! |
@janusch Sorry, I intentionally didn't include CSS in the component. Autosuggest is all about the mechanics of the accessible interaction, and it has no opinion about how it looks. You can see here an example of styling the Autosuggest using CSS Modules. If you are using global classes just replace |
Ok, no problem, I can wait until tomorrow. Thanks for the pointers to styling it, I might give ccs modules a try or go with your hints for global styles. |
@janusch Try now, and let me know how you go. |
Cool, thank you, i'll give it a go! |
Hey @moroshko , The way I went was to follow your basic usage example. Maybe you could expand the example a little, so that it is a full react component and integrates with a conventional redux app? Also now there are three files in the dist folder, I went with only including the import from the example of the readme: Ar there any other preconditions that need to be fulfilled for it to work with redux? Because this is where I am stuck right now, to wire up the suggest reducer. I am not quite getting how much I need to implement on the redux end? Also, how would this work if there are several dynamically generated react-autosuggest components? I am pretty sure that it is not the fault of react-autosuggest that it does not work out for me right now. I might try again sometime tomorrow. |
Hey @janusch, Autosuggest uses redux internally to manage its state, but you shouldn't care about this, it's just an implementation detail. I updated the Basic Usage example, but note that it doesn't use redux. To see how to connect Autosuggest to a conventional redux app, check out the examples here (all of them except BasicUsage use redux). There are no "preconditions" for Autosuggest. It should just work. I hope that the redux examples would clarify how you should connect Autosuggest to your app. I'd be interested to know if they are not clear enough, and improve them where needed. You are right, you should just include do: I'm not entirely sure what do you mean by "several dynamically generated react-autosuggest components". Could you elaborate, and provide your use case? If you are still stuck, could you please share your code? A repo that demonstrates the issue would be even better! Hope this helps. |
Hey @moroshko, I'll get back also with input on places where I am still stuck. |
Hey @moroshko ,
As you can see I got far but not fully there yet. Now I have hope that react-autosuggest might be able to work for my use case. Thanks a lot for taking some time to get me up and running ;) |
Oh, one more thing, I might have misunderstood, |
@janusch Could you share some code so that I could see your setup? It's hard to guess why I'll think about adding a plain CSS to the examples. I hope it doesn't block you for now. I'm not sure what you mean by this:
If you want to keep the selected value, just save it in the Here is why Glad to help! |
Just wanted to let you know that 3.0 alpha version is available on npm:
|
Super! Merry Christmas |
Hey,
thank you for this excellent react component!
I would really like to include v3 in my project, also because of the redux integration, do you think it is ready for prime time?
Would you mind putting it up on npm?
Keep up the great work!
The text was updated successfully, but these errors were encountered: