imported path

This commit is contained in:
John Williamson 2017-11-26 18:59:57 +10:00
parent 5d1679d00a
commit 71b70ea014
2 changed files with 5 additions and 0 deletions

View File

@ -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] }))

View File

@ -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)