goodideas-usercard
v1.0.0
Published
user profile ui card element component thing
Downloads
2
Readme
usercard component
how to use this module?
var usercard = require('goodideas-usercard')
var minixhr = require('minixhr')
var bel = require('bel')
var url = 'https://jsonplaceholder.typicode.com/users'
minixhr(url, function (data) {
var arr = JSON.parse(data)
var elements = arr.map(user => usercard(user))
document.body.appendChild(bel`
<div class="user-gallery">
${elements}
</div>
`)
})