Skip to content

Instantly share code, notes, and snippets.

@plouc
plouc / App.jsx
Last active Jul 2, 2017
Mozaïk realtime communication example
View App.jsx
// mozaik-demo/src/App.jsx
import React from 'react';
import Mozaik from 'mozaik/browser';
import Realtime from './Realtime.jsx';
Mozaik.Registry.add('realtime.example', Realtime);
const MozaikComponent = Mozaik.Component.Mozaik;
React.render(<MozaikComponent/>, document.getElementById('mozaik'));
View dabblet.css
html, body {
height: 100%;
margin: 0;
font-family: sans-serif;
font-size: 12px;
}
ul {
margin: 0;
padding: 0;
}
View dabblet.css
html, body {
height: 100%;
margin: 0;
font-family: sans-serif;
font-size: 12px;
}
ul {
margin: 0;
padding: 0;
}