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

83
Views
React Map in functional component Issue

https://codesandbox.io/s/simple-line-chart-forked-h39zlx?file=/src/App.tsx

how to use react map for below link , line number 31 in App.tsx ?

 const Tabs = [
      {
        tabname: "tab2"
      },
      {
        tabname: "tab3"
      },
      {
        tabname: "tab4"
      }
    ];
<a to="" className={`tab ${active === "tab2" ? "active" : ""}`} onClick={() => setActive("tab2")}>
Align & Ratio
</a>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If linking to an external page that is not a part of your React application, than use <a>, else use <Link>. and use "href=" with <a> and "to=" with <Link>.

    {Tabs.map((obj, i) => (
      <p key={i} onClick={() => setActive(obj.tabname)} className="tab">
        {/* Align & Ratio */}
        {obj.tabname}
      </p>
    ))}

https://codesandbox.io/s/simple-line-chart-forked-v25zdp?file=/src/App.tsx

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!