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.

Cannot wrap `Line` with customized component

See original GitHub issue

I was trying to wrap <Line /> with my customized component. Like

const CurveLine = (props) => {
  // do some transform with props here
  return (
    <Line
      ....
    />
  )
}

but the Line didn’t render in the chart. Is there some way to do it correctly ? : )

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:11
  • Comments:26 (2 by maintainers)

github_iconTop GitHub Comments

24reactions
reneeichhorncommented, Jul 19, 2018

I think this should be reopened as it still is an issue. The workaround from @cjies works but that’s certainly not how it should be. Wrapping components is a very standard thing to do in react. I believe that it should be fixed or at least it should be documented on how to do it in a proper way.

@xile611

15reactions
QuevedoIBcommented, Nov 5, 2021

This should be reopened since is breaking the base pattern to compose react applications @xile611

Read more comments on GitHub >

github_iconTop Results From Across the Web

not able to wrap the components in reactnative - Stack Overflow
The problem is that after I select 3 items (three tags will be appearing) and go for the 4th one than the TextInput...
Read more >
Terminal prompt not wrapping correctly - Unix Stack Exchange
So using the command env -i bash --norc fixes it. The $COLUMNS and $LINES match. Does that mean that there's something funny with...
Read more >
Wrapping and breaking text - CSS: Cascading Style Sheets
This guide explains the various ways in which overflowing text can be managed in CSS.
Read more >
Wrapping React Components Inside Custom Elements - Gil Fink
If we want to wrap this component inside a custom HTML element we need to take care of a few things: Pass the...
Read more >
wrap, overflow - wrap - , and - word - break - LogRocket Blog
What is the difference between a soft wrap break and a force line break? ... Any text wrap that occurs at a soft...
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