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

146
Views
React JS: display map components as flex style in the same row

I am learning React js and trying to build a product page of an E-commerce website, but I am stuck with the part where I should put the map components from a data in the same row. Here is the link for my codes.

https://codesandbox.io/s/serene-glade-dvps24?file=/src/Shop.scss

What I want is to put three products in a row, but it seems like if you map an item the whole wrappers will be duplicated since they are map components. Any helps would be appreciated, thank you.

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

0

You need to move the wrapper outside the map. I usually set the wrapper styling to display: grid; Check my changes: https://codesandbox.io/s/upbeat-voice-pf8pst?file=/src/App.js

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!