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

211
Views
Practice of using <div> with component libraries (mui + react)

I am building a site based on Next.js (React | TSX) & Material-UI library. I customize some of my components, and I'd like to ask about using <div> wrappers around my components, like:

export const component = /** JSX below */

<Fragment>
  <div className={classes.root}>
    <MUIDataTable
      data={data.feed}
      columns={columns}
      options={options}
    />
  </div>
</Fragment>

Most of the components look something like that. I use divs to pass custom css style via className property. So the question is, does it ok to wrap my components, or is it not?

I have not so much experience with the front-end, so I don't know the best practices with MUI & React. Probably there is some kind of component, that I should use instead of <div>?

about 4 years ago · Juan Pablo Isaza
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!