No description
  • JavaScript 100%
Find a file
2016-03-07 23:29:08 +02:00
src Just pass all props. 2015-11-13 09:56:35 +02:00
.babelrc Update to Babel 6. 2015-12-14 16:26:54 +02:00
.gitignore Ignore logs. 2015-11-11 06:08:59 +02:00
.npmignore Add npmignore 2015-11-09 10:53:15 +02:00
LICENSE Initial commit 2015-11-09 08:35:09 +02:00
package.json Update to Babel 6. 2015-12-14 16:26:54 +02:00
README.md Link 2016-03-07 23:29:08 +02:00

NOTE: This library is deprecated. Bacon.React.HTML is the successor of this library.

npm version

Get started

import React from "react"
import Bacon from "baconjs"
import Reify from "bacon.react"

Observe cardinality

// n = 1
<Reify>{Bacon.constant(<h1>LOL BAL</h1>)}</Reify>
=> <h1>LOL BAL</h1>

// n > 1
<Reify>{Bacon.constant("LOL")} {Bacon.constant("BAL")}</Reify>
=> <div>LOL BAL</div>

// n = 1
<Reify><h2>{Bacon.constant("LOL")} {Bacon.constant("BAL")}</h2></Reify>
=> <h2>LOL BAL</h2>

Optional lifecycle props

<Reify
  willMount={me => ...}
  didMount={myself => ...}
  willUnmount={i => ...}>
  ...
</Reify>