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.

option to disable div wrapper (but keep all inside Component)

See original GitHub issue
import { Social } from 'modules/buttons'

<footer className="my-footer"></footer>

i.e. I want <footer></footer> , not <div><footer></footer></div>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
simonlccommented, Feb 18, 2018

I was getting an error about keys so I changed this:

<MyMDXComponent factories={{
  wrapper: (props, ...children) => children
}} />

To this:

<MyMDXComponent factories={{
  wrapper: (props, ...children) => React.Children.toArray(children),
}} />
0reactions
jamesknelsoncommented, Nov 3, 2018

Closing this issue as I’ve deprecated mdxc in favor of https://github.com/mdx-js/mdx

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to disable DIV element and everything inside [duplicate]
The following css statement disables click events pointer-events:none;.
Read more >
How to remove div wrapper from component - AEM Corner
AEM wrap by default each component html placed in a page with a DIV tag. How to remove div wrapper from component? There...
Read more >
Provide a way to disable rendering div for Router #63 - GitHub
And it's very strange, first wrapper I can hide with <Router component={RouterComponent}> , but all nested routes wraps with default div .
Read more >
<fieldset>: The Field Set element - HTML - MDN Web Docs
This attribute takes the value of the id attribute of a <form> element you want the <fieldset> to be part of, even if...
Read more >
How to prevent inline-block divs from wrapping - GeeksforGeeks
Example 1: We have to display multiple tables that have been laid out using suitable bootstrap row and column classes. The problem would...
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