mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-05 10:31:30 -06:00
15 lines
354 B
JavaScript
15 lines
354 B
JavaScript
'use strict';
|
|
|
|
var React = require('react');
|
|
var Root = require('./root.js');
|
|
var noms = require('noms');
|
|
|
|
noms.getRoot().then((rootRef) => {
|
|
noms.readValue(rootRef, noms.getChunk).then(render);
|
|
});
|
|
|
|
function render(rootValue) {
|
|
var target = document.getElementById('explore');
|
|
React.render(Root({ name: 'Root', rootValue: rootValue }), target);
|
|
}
|