diff --git a/examples/react/src/Chat.js b/examples/react/src/Chat.js index 6f01989b..34eb5390 100644 --- a/examples/react/src/Chat.js +++ b/examples/react/src/Chat.js @@ -1,5 +1,9 @@ import React, { Component } from 'react' import Gun from 'gun' +import path from 'gun/lib/path' +// var path = require('gun/lib/path.js') + +// console.log(path) const formatMsgs = msgs => Object.keys(msgs) .map(key => ({ key, ...msgs[key] })) diff --git a/examples/react/src/Todos.js b/examples/react/src/Todos.js index 1a2bf004..9d4ac45d 100644 --- a/examples/react/src/Todos.js +++ b/examples/react/src/Todos.js @@ -1,5 +1,6 @@ import React, { Component } from 'react' import Gun from 'gun' +import path from 'gun/lib/path' import './style.css' const formatTodos = todos => Object.keys(todos)