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.

get lots of warning information when using Menu component

See original GitHub issue

Version

3.0.1

Environment

react v16

Reproduction link

https://github.com/limengke123/blog_react

Steps to reproduce

when using Menu component,this will be found

What is expected?

no error

What is actually happening?

the Menu component works correctly , but got lots of warning infomation in Console. e.g. React does not recognize the inlineIndent prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase inlineindent instead. If you accidentally passed it from a parent component, remove it from the DOM element.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

29reactions
otto-devcommented, Jan 6, 2019

@yesmeck @kkuzmina You get the error if you nest vanilla HTML elements, but you can nest react Components.

So wrapping your HTML elements in a Component is an option if you want to place something else than a Menu.item in a menu.

17reactions
yesmeckcommented, Dec 28, 2017

Don’t put <a className="logo" to="/" /> under Menu directly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alerts - Presentation - Human Interface Guidelines - Design
An alert gives people critical information they need right away. For example, an alert can tell people about a problem, warn them when...
Read more >
Material UI Menu using routes - reactjs - Stack Overflow
I implemented LeftNav using routes, but I could not find a way to get IconMenu, or Menu working with links or routes. Anyone...
Read more >
Create an alert to get notified when a file or folder changes in ...
You can get an alert whenever a file, link, or folder is changed in a SharePoint document library. Depending on the item (file,...
Read more >
React Alert component - Material UI - MUI
An alert displays a short, important message in a way that attracts the user's attention without interrupting the user's task.
Read more >
Menu - Ant Design
Side navigation provides the multi-level structure of the website. More layouts with navigation: Layout. Notes for developers. Menu is rendered as a ul...
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