These are chat archives for Ian-Stewart-Binks/Foosball

20th
Jan 2016
Anirudh Mukundan
@Anirudh94
Jan 20 2016 15:34
@Ian-Stewart-Binks can you try removing the React npm module dependency and running?
it seems to work without it, but I don't get why
dont u need it to pre-compile the JSX?
Anirudh94 @Anirudh94 might be doing something wrong here...
Ian Stewart-Binks
@Ian-Stewart-Binks
Jan 20 2016 15:44
@Anirudh94 We are doing something wrong - not fully understanding the problem. Well, at least I'm not understanding it fully, as in my previous attitude was 'if it works, it works well', which is definitely a bad attitude to have. The html file includes 'react.js' - now I believe that will transform the JSX. We can also bundle the React files server side and then send them out - I think there's a popular tool called browserfy.
Anirudh Mukundan
@Anirudh94
Jan 20 2016 18:47
This message was deleted
hmm so by avoiding
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react.js"></script>
meant to say: we can avoid the above, by using Reach + Browserfy node modules?
so its done server side
Ian Stewart-Binks
@Ian-Stewart-Binks
Jan 20 2016 18:49
@Anirudh94 I believe so. Server side is ultimately better for obvious reasons. I think StackOverflow does server side rendering, and is very fast.
@Anirudh94 Is there a tutorial on how to best do server side?
Anirudh Mukundan
@Anirudh94
Jan 20 2016 18:54
@Ian-Stewart-Binks ah yes I see now makes sense thanks
@Ian-Stewart-Binks I haven't really finished learning the client side version myself xD, but I did read this briefly http://blog.yld.io/2015/06/10/getting-started-with-react-and-node-js/
so basically just require the node modules and then jsx.install()
but ill let u know if i find a better tutorial
Anirudh Mukundan
@Anirudh94
Jan 20 2016 20:26
hey guys, quick tip: use nodemon to run your app, it automatically fetches changes from ur html files for you
installation: npm install -g nodemon and then nodemon index.js