DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cardorel Ngassaki
Cardorel Ngassaki

Posted on

Somebody can tell me why my array can not display in my page 'Home.js' please?

import React from 'react';
import Home from './Home';

function Li (props){
return li {props.value} /li
}

const List = props =>{
const numbers = props.numbers;
const listItem = numbers.map((number) =>
// Li value={number} key={number} /
)
return (
// ul{listItem}/ul
)
}

export default List;

//*****************
import React from "react";
import List from './list';

function Home () {
const numbers = [1,2,3,4,5];
return (


Home Page




)
}

export default Home;

Top comments (0)

Hi!I'm Noah!

Hey, my name is Noah and I’m the one who set up this ad!


My job is to get you to join DEV, so if you fancy doing me a favor, I’d love for you to create an account.
Β 
If you found DEV from searching around, here are a couple of our most popular articles on DEV: