I'm having some serious troubles in getting react set up with rendering on the server side.. Here are my relevant files to the problem I'm having: https://bitbucket.org/snippets/imattacus/g9r6
I have been following tutorials online and I'm just doing what I see other people doing - but I'm under the impression I have made a react Component (class?) and I need to react.createElement() on the component i've made so it can be rendered.
But I don't understand how to do this because createElement requires a position in the DOM?
I'm only new to react, so I may have completely misunderstood something along the way - but can you guys see any problem in my code that would produce the 'invariant error' unable to use renderToString on invalid ReactElement?
Thanks!