Warning: Unknown prop `render` on <i> tag.
See original GitHub issueI’ve seen this issue reported on #60 but after trying the two methods to remedy it I’ve come up short.
Basically the goal is to have a single element as the context trigger.
I’ve tried
- passing in a “i” as a component prop and applying className to the ContextMenuProvider for my desired styles
- creating a custom component (just a <div> to hold it) and passing it under the component prop, but I still get the same error
<ContextMenuProvider id={singleBookmark} event="onClick" className={s.singleContextContainer}>
<i className="fa fa-cog" aria-hidden="true" />
</ContextMenuProvider>
Any idea if I’m doing something fundamentally wrong here? Thanks for any help!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Unknown Prop Warning - React
The unknown-prop warning will fire if you attempt to render a DOM element with a prop that is not recognized by React as...
Read more >Unknown prop on <> tag. Remove this prop from the element ...
It's an "industry standard" that component names are capitalised, otherwise react thinks that it's dealing with an HTML tag and checks for ...
Read more >Unknown prop `store` on <provider> tag-Reactjs
How to show warning if unknown prop is passed in react component? ... How can I suppress "The tag <some-tag> is unrecognized in...
Read more >Unknown props `onExited`, `appear`, `enter`, `exit` on <li> tag ...
Console error: Warning: Unknown props `onExited`, `appear`, `enter`, ... import React, { Component } from 'react'; import { render } from ...
Read more >API Reference - styled-components
Either a valid react component or a tagname like 'div'. Returns a function that accepts a tagged template literal and turns it into...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same question. The 2 methods in #60 I have already tried didn’t work yet.
@mjohnson290 did you try to upgrade react like @marjo688 suggested?