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.

Warning: Unknown prop `render` on <i> tag.

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AlanAdmincommented, May 11, 2018

I have the same question. The 2 methods in #60 I have already tried didn’t work yet.

0reactions
fkhadracommented, Jun 4, 2018

@mjohnson290 did you try to upgrade react like @marjo688 suggested?

Read more comments on GitHub >

github_iconTop 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 >

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