0
여분의 소품을 올바르게 전달하는 방법은 무엇입니까?TypeScript with Redux 연결 여분의 소품
const SideBar = connect(
(state: State) => ({current: state.projects.current}),
null
)(({className, current}) => (
<nav className={'side-bar ' + className}>
...
</nav>
))
나는이 오류가있어 클래스 이름
<SideBar className="app__sidebar"/>
를 전달하려는 : 내가 생각
(37,24): error TS2339: Property 'className' does not exist on type
'IntrinsicAttributes & IntrinsicClassAttributes<Component<Pick<{
current: Project | undefined; } &...'.
부 내가 ownProps를 지정하고 싶지 않은 것은 무엇입니까? 나는 JS에서 그것을 할 수있다. –