Reactjs 使用隐式返回、代码检查做出反应

Reactjs 使用隐式返回、代码检查做出反应,reactjs,Reactjs,如何更改代码以使用隐式返回 import components from 'core/components'; import RTE from 'core/components/RTE'; import withSelect from './withSelect'; components.rte.component = withSelect(props => { return <RTE {...props} />; }); 从“核心/组件”导入组件; 从“核心/组件/R

如何更改代码以使用隐式返回

import components from 'core/components';
import RTE from 'core/components/RTE';
import withSelect from './withSelect';

components.rte.component = withSelect(props => {
  return <RTE {...props} />;
});
从“核心/组件”导入组件;
从“核心/组件/RTE”导入RTE;
使用选择从“/使用选择”导入;
components.rte.component=with选择(道具=>{
返回;
});
你是这个意思吗

//导入
components.rte.component=withSelect(props=>);
//休息