react-curry
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "react-curry", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "react stateless curry", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
inspired by curry in functional programming | ||
## intro | ||
because react component always contains only one parameter which is props, my curry | ||
function's work is to deep merge two props. | ||
## 1.how to use | ||
## how to install | ||
``` | ||
npm install --save react-curry | ||
``` | ||
## how to use | ||
``` | ||
import React from 'react'; | ||
import curry from 'react-curry'; | ||
import curry from 'react-curry'; // just a function | ||
const Div = (props) => <div {...props}/>; | ||
@@ -9,0 +17,0 @@ |
2744
24