reactライフサイクルフックjsX
619 ワード
reactライフサイクルフック
JSX
componentWillMount:
componentDidMount: DOM ( )
componentWillUnmount:
JSX
{
tagName:"div",
attrs:[className:"wrapper"]
childen:[
{
tagName:"button",
attrs:['onClick':fn]
}
]
}
react :
1. css [ ]
2.js