0
REDUX 업체 인의 말을하자 ? 나는 그것을 응용 프로그램에서 얻을 수 있지만 어떻게 그것의 아이에게 그것을 전달할 수 있는지 모르겠다. 당신이 App
을 위해했던 것처럼반응 내가 메인 JS 파일이 그랜드 아이
import React from 'react'
import { connect } from 'react-redux';
export class Proba extends React.Component
{
constructor(props)
{
super(props);
console.log(this.props);
}
render()
{
return <p>{this.props.a}</p>;
}
}
function anotherMapStateToProps(store)
{
return {
a: 'ok'
};
}
function anoterMapDispatchToProps(dispatch)
{
return {};
}
export default connect(anotherMapStateToProps, anoterMapDispatchToProps)(Proba)
나는 그것을 시도, 내 질문을 업데이 트했습니다. 내 app.js에서 아무것도 변경되지 않았습니다. –