I am a beginner React.js learner. I dont know where did I made mistake and this is my first quesiton ever. This is my component List.js which I Sent props from another component calls Contact.js
import React, { Component } from 'react'
import './List.css';
import PropTypes from "prop-types";
class List extends Component {
static propTypes={
contacts:PropTypes.array.isRequired
};
render() {
return (
<div className="ListArea">
<input name="filter" id="filter" placeholder={"Filter by name or phone"} />
<ul className={"List"} >
{
this.props.contacts.map(contact =>
<li>
<span className={"name"}>{contact.name}</span>
<span className={"phone"}>{contact.phone}</span>
<span className={"clearfix"}></span>
</li>
}
</ul>
</div>
)
}
}
export default List;
import React, { Component } from 'react'
import List from "./List";
import "./List.css"
import Form from './Form';
class Contacts extends Component {
render() {
return (
<div>
<List Contacts={this.props.Contacts}/>
<Form/>
</div>
)
}
}
export default Contacts;
I am so inexperienced here sorry for my mistake
this.props.Contactsuppercase and reading it lower casethis.props.contacts<List Contacts={this.props.Contacts} />