Open rockywu opened 8 years ago
My code : "use strict"; /*
export default class IndexPage extends Component { render() { return (
);
}
}
Browser Error : Uncaught TypeError: Cannot read property 'filter' of undefined
componentProps @ ComponentProps.js:15 render @ Button.js:120 render @ enhancer.js:132
error :
Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render
method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).
my code is your demo. package.json : "dependencies": { "keymirror": "^0.1.1", "q": "^1.4.1", "react": "^15.0.1", "react-dom": "^15.0.1", "react-list": "^0.7.18", "react-redux": "^4.4.5", "react-router": "^2.3.0", "reapp-ui": "^0.12.84", "redux": "^3.5.2", "redux-thunk": "^2.0.1", "underscore": "^1.8.3" },
麻烦楼主用markdown先整理下代码。看起来费劲。
请楼主贴完整代码
问题是这样的,我想使用reapp-ui作为我一个内容项目UI开发的框架,但是再耦合上去的时候很多都无法使用。能否给一个Demo,让我看看如果只使用reapp-ui作为UI层面开发框架使用(不想用reapp-kit作为管理 - 能否兼容最近的react 5.x的版本)
my code : "use strict"; /*
export default class IndexPage extends Component { render() { return (
}
error : Uncaught TypeError: Cannot read property 'filter' of undefined