Skip to content

Instantly share code, notes, and snippets.

View SukantGujar's full-sized avatar

Sukant Gujar SukantGujar

View GitHub Profile
@revolunet
revolunet / index.js
Created September 16, 2016 14:52
Load remote components at run-time with script.js
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
// https://github.com/ded/script.js
var $script = require("scriptjs");
// load remote component and return it when ready
// display current children while loading
class LoadRemoteComponent extends Component {