Skip to content

Commit 05a8a4f

Browse files
committed
all props seem the same WHAT IS WRONG
1 parent 60557c2 commit 05a8a4f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

app/handlers/Root.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var Root = module.exports = React.createClass({
3131
},
3232

3333
render: function() {
34+
console.log(JSON.stringify(this.props));
3435
return (
3536
div({},
3637
h1({}, 'Where am I? ' + this.state.whereAmI),

app/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require('./ENV');
22
var React = require('react');
33
var routes = require('./routes');
4-
console.log(JSON.stringify(routes));
4+
console.log(JSON.stringify(routes.props));
55
React.renderComponent(routes, document.getElementById('app'));
66

77
//require('react-router').renderRoutesToString(routes, '/', function(err, ar, html, data) {

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ function renderApp(path) {
3030
//return indexHTML.replace(dataRegex, "{};");
3131

3232
return new Promise(function(resolve, reject) {
33+
console.log(JSON.stringify(routes.props));
3334
Router.renderRoutesToString(routes, path, function(err, ar, html, data) {
34-
console.log(JSON.stringify(routes));
3535
var output = indexHTML.
3636
replace(htmlRegex, html).
3737
replace(dataRegex, JSON.stringify(data));

0 commit comments

Comments
 (0)