Open olebedev opened 9 years ago
Yes, I have the same problem guys.
@olebedev Do you know, where is the problem and how I can fix it? Thanks man!
@olebedev @vlafiser I've fixed an issue in this fork. I'm just not sure that it's a good idea to create a pull request for it.
@vermilion1 I will try this soon, thanks! Unfortunately, It looks like the project is abandoned.
Hi, in my opinion this project template doesn't demo best practices when building an app with React.
Could you please show up right way to do it?
The gist for code execution:
vm
Node moduleThe approach in this template doesn't do this and allows to leak per-user data into other user sessions because modules' scope remains the same between requests.
The gist for data fetching (assuming something like Flux):
P.S. as a bonus — Flux stores could be backed by Swarm.js data structures!
@vermilion1 had the right idea in their fork. Change
var nodejsx = require('node-jsx').install();
to
var nodejsx = require('node-jsx').install({extension: '.jsx'});
to make it work. I'd definitely be interested in seeing an example of what @andreypopp is talking about, though.
@vermilion1 your fork works perfectly :+1:. Why you think that isn't a good idea to create a PR for this repo? Sorry if my question it's stupid, I'm a completely React noob :)
I am trying to start the project like this:
as in README file.
At the start I get this:
But I get an error each time requested to
http://localhost:3000/
:Fibers installed, as expected:
So, maybe package's versions in
package.json
are outdated? Thoughts?