Skip to content

vigour-io/brisky-props

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brisky-props

Build Status js-standard-style npm version Coverage Status

Set attributes on brisky-elements

  const render = require('brisky/render')
  const s = require('vigour-state/s')
  const state = s({ thumb: 'cat' })

  const app = render({
    img: {
      tag: 'img',
      props: {
        src: {
          $: 'thumb',
          $transform: (val) => `http://bla.com/${val}.jpg`
        }
      }
    }
  }, state)

  document.body.appendChild(app)

  state.cat.thumb('dog') // → changes thumb to dog

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •