-
Notifications
You must be signed in to change notification settings - Fork 36
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
using LINK functionality in the Sidebar.Menu.Item #7
Comments
I've been trying to keep the dependencies for this component to a minimum, otherwise I probably would have used react-router |
I tried this but i get errors -- Cannot update during an existing state transition (such as within |
again this is an awesome react-adminLTE dashboard!! just in case any other beginners need it. i imported browserhistory and |
Glad you could make it work for you. You are correct, you need to provide a function to events like onClick (or onBlur, etc) instead of a function call. The function call would be activated while rendering the page, causing the error you were seeing. You can either use Closing this issue as solved. |
is there a way we can use react routers LINK component instead of href?
i like the look of sidbar.menu.item but doing a href call seems to refresh the whole page but if I use link it only replaces the main component which is much nicer.
thanks for your any guidance!
The text was updated successfully, but these errors were encountered: