detail.jsx文件import React from 'react'import DetailHeader from '../components/detail-header.jsx'import DetailContent from '../components/detail-content.jsx'import { connect } from 'react-redux'const detail = React.createClass({ render() { let id = this.props.params.id return ( <div className="container"> <DetailHeader id={id}/> <DetailContent id={id}/> **{this.props.children}** </div> ) }})export default detailthis.props.children在這里指的是什么呢
react this.props.children
翻翻過(guò)去那場(chǎng)雪
2018-08-09 13:05:47