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

69
Views
Passing array inside props not working with loops in child component ReactJS

I've two files one is "Expertise.jsx" and another one is "AnimatedContentBox.jsx".

This is how "Expertise.jsx" looks like


export default function Expertise(){
    return (
        <div className="expertise">
            <div className="container">
                {
                <>
                <AnimatedContentBox list={"item1","item2","item3"}/>
                </>
                }   
            </div>
        </div>
    );
}

And this is "AnimatedContentBox.jsx"


export default function AnimatedContentBox(props){
    console.log(props.list);
    const listItems = numbers.map((number) =>  <li>{number}</li>);
    return (
        <div className="list"> 
            <ul>
                {listItems}
            </ul>
        </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!