I am new to ReactJs and the issue that I am having is that the array value is not being displayed on the body
class App extends React.Component{
render(){
let arr = ["one", "two"]
arr.map(n => <Append val={n}/>)
return
<div></div>
}
}
class Append extends React.Component{
render(){
return(
<div>
{this.props.val}
</div>
)
}
}
ReactDOM.render(<App />,document.getElementById("div"))
My goal is to append to the body the two array values.