-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How to use with ReactJS ? #269
Comments
I found this thread on stackoverflow which had an answer: https://stackoverflow.com/questions/45216214/how-to-use-slideout-js-using-reactjs-and-webpack?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa This is what I did, but it did not work:
The 'menu'-propery is |
@vincelord - theres good documentation on integrating third party libs, Have a look at: https://reactjs.org/docs/integrating-with-other-libraries.html |
you can do this,it works with react hooks useEffect(() => {
const slideout = new Slideout({
'panel': navRef.current,
'menu': mainRef.current,
'padding': 256,
'tolerance': 70
});
// Toggle button
searchRef.current.click(function () {
slideout.toggle()
});
}, []) |
This library is really great but surprisingly I have not found a single solution about how it works with react js. Need help.
The text was updated successfully, but these errors were encountered: