react-fantasy
Rendering fantasyland
structures in React.
Options
Option is a container for value, witch encapsulate null check condition. Allow replace null
with Option.None
and write only logic without any checks.
Usage
var React = Option = Option option = option; var SomeValue = React; var SomeContainer = React
Rendered as
Some string
Type checkers
Add check propTypes and contextTypes for fantasy structures such as Option, Seq and Json. In future will be added Either, Readers, Writers and State
PropTypes example:
var fpt = PropTypes; var SomeClass = React;
Whenever non required values is possible, but that non functional behavior, because before rendering need some checks for ensure what value is present.
License
MIT