Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

88
Views
react-big-calendar not rendering anything inside other components

I'm trying to create some application with react-big-calender, but I'm facing some weird behavior of it. If I wrap it inside any other component other than directly rendering it, it doesn't show anything at all.

const App = () => {
  return (
    <div>
      <Cal />
    </div>
  );
};

ReactDOM.render(<Cal />, document.getElementById("root")); //<- works
ReactDOM.render(<App />, document.getElementById("root")); //<- works, but doesn't show anything

And that Cal module is defined as it was defined in their example

Here is my codesandbox

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This problem is not related with react-big-calender, its the problem of CSS.

Try

<div style={{ width: "100%", height: "100%" }}>
  <Cal />
</div>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!