ReactDream builtin components for Web (HTML + SVG)
This library contains a full set of ReactDream builtin components for Web, both SVG components and HTML ones.
This is a companion library for ReactDream, a Fantasy Land type for React components.
Install
yarn add react-dream-web-builtins
And then some peerDependencies for ReactDream itself:
yarn add react recompose
Usage
const withChildren = const Title = HtmlH1 name'Title' const Square = SvgRect name'Square' const Canvas = of <Container ...container> <Content ...content /> </Container> name'Canvas' const App = of <Wrapper ...props ...wrapper }> <North ...props ...north } /> <South ...props ...south } /> </Wrapper> name'App' App