From 71b70ea014e1b7cf7fb355fac4a3f1a15ab596ec Mon Sep 17 00:00:00 2001 From: John Williamson Date: Sun, 26 Nov 2017 18:59:57 +1000 Subject: [PATCH] imported path --- examples/react/src/Chat.js | 4 ++++ examples/react/src/Todos.js | 1 + 2 files changed, 5 insertions(+) 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)