parameters in class react components code example
Example 1: react js component parameters
import TitleLine from '../components/title-line'
import '../assets/style/components/_line.scss'
function Line(props) {
console.log('ropiedades: ', props);
return (
<div>
<TitleLine header={props}/>
</div>
);
}
export default Line;
Example 2: class component params in react
<input
type= "text"
value={ this.state.value || "" }
placeholder="Enter Name"
/>