vigour-io / builder-boy

👲🏽 Build and watch es modules FAST 👲🏽
6 stars 1 forks source link

[JSX] using html attributes #73

Closed youzi closed 7 years ago

youzi commented 7 years ago

In React land adding html attributes in jsx is the same as in html (http://magic.reactjs.net/htmltojsx.htm) in Brisky-render we need to add the property 'attr'.

this looks like this, eg:

<input attr={{ type: 'range' }} />

vs

<input type='range' />

We should support the latter => we can add this in either builder-boy or brisky-render itself.

/cc @jimdebeer

jimdebeer commented 7 years ago

works for everything except type -- need to change in render