import React from "react";
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
class Model extends React.Component {
constructor(props){
super(props);
this.state = {
}
}
render() {
console.log(this.props);
let result = <p>{this.props[0]}</p>
return (
<div>
{result}
</div>
)
}
}
export default Model;
render() {
console.log(this.props);
let result = this.props.mark[0]
return (
<div>
<p>{result}</p>
</div>
)
}
render() {
console.log(this.props);
let result = this.props.mark[0]
return (
<div>
{this.props.mark!==undefined && this.props.mark.length!==0
?
this.props.mark.map(
(el,ind)=><p>{el}</p>
)
:null
}
</div>
)
}