Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
// 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')); |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');