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;

Latest comments (0)