我为什么不再用 Vue,而改用 React?
逆锋起笔
共 5034字,需浏览 11分钟
·
2020-08-04 16:17
Hello reader !
#myDiv {
display: block;
}
class MyComponent extends React.Component {
render() {
return( )
}
}
Vue.component({
template: ` `
})
return (
{students.map(student =>
{student}
)}
)
{{ student }}
class MyComponent extends React.Component {
constructor(props) {
super(props)
this.state = {
counter: 0
}
}
render() {
return( )
}
}
function MyComponent() {
const [counter, setCounter] = useState(0)
return( )
}
关注我,获资源干货
?关注 程序员干货分享
评论