These are chat archives for riot/riot

27th
Dec 2016
Jamison Hyman
@jhyman2
Dec 27 2016 20:49
Question: In server side rendering, how do I get component-1 to know about component-2? Or do I handle that in express?
// component-1.tag
<component-1>
    <component-2></component-2>
</component-1>

// app.js
var component1 = requre('component-1.tag');
var component2 = requre('component-2.tag');

res.send(riot.render(component1));