在我用injectIntl 包装它之后,我在获取React 组件中func 的引用时遇到了问题。基本上我需要的是通过 ref 访问组件中的 func 这就是我正在做的
class MainContainer extends React.Component {
constructor(props) {
super(props);
}
getSamples(){
return sth
}
render() {
return (<div>this.props.sth</div>)
}
export default injectIntl(MainContainer )
用injectIntl 包裹后是否可以得到MainContainer 的引用?