ReactJS
メモ: https://facebook.github.io/react/docs/transferring-props.html render() { return (<Home {...this.props} />) } render() { if (this.state.loggedIn){ return (<Home {...this.props} />) }else{ return (<Login {...this.props} />) } }</login></home></home>
"react-router": "^2.2.4", "react": "^0.14.8", ES6 Uncaught TypeError: Cannot read property 'push' of undefined Uncaught TypeError: Cannot read property 'replace' of undefined Uncaught TypeError: Cannot read property 'transitionTo' of undef…
"react": "^0.14.8", ES6 ReactCompositeComponent.js:559 Uncaught TypeError: Cannot read property '_currentElement' of null render()の時にエラーになっているようだった。 constructorに this.state = {error: false} を足したらエラーが消えた。 imp…
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 https://github.…
"react": "^0.14.8", エラー Error: /Users/ /index.js: Unexpected token (15:11) while parsing file: /Users/ /index.js http://stackoverflow.com/questions/33460420/babel-loader-jsx-syntaxerror-unexpected-token http://stackoverflow.com/question…
ReactJS 15.0.1を最初に試した時のメモ。 http://d.hatena.ne.jp/tomoya/touch/20160403/1459665374 エラー ES6版React.jsチュートリアル - Qiita を試したらエラーが出た。 TypeError: _react2['default'].render is not a function. (In '_react2['default…