classnames-components
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -34,4 +34,8 @@ "use strict"; | ||
}; | ||
}; | ||
}; // How do we handle the passing down of props on a HTML element? Custom attributes are allowed? | ||
// https://reactjs.org/docs/dom-elements.html#all-supported-html-attributes | ||
// How do we wrap an existing classname-component? | ||
// --- also make sure we can use `as` in this situation | ||
var classnamesComponents = function classnamesComponents(element) { | ||
@@ -38,0 +42,0 @@ return function () { |
{ | ||
"name": "classnames-components", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A CSS class component wrapper to speed up styling React components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -8,8 +8,16 @@ # classnames-components | ||
This project is README-driven, this file is step 1. There will be a lot of edits before I start coding things. | ||
This project is README-driven and WIP. The basic functionality works. | ||
## Installation | ||
_not on npm yet_ | ||
```bash | ||
yarn add classnames-components | ||
``` | ||
or | ||
```bash | ||
npm i classnames-components | ||
``` | ||
## Basic usage | ||
@@ -16,0 +24,0 @@ |
@@ -12,2 +12,8 @@ import React from 'react'; | ||
// How do we handle the passing down of props on a HTML element? Custom attributes are allowed? | ||
// https://reactjs.org/docs/dom-elements.html#all-supported-html-attributes | ||
// How do we wrap an existing classname-component? | ||
// --- also make sure we can use `as` in this situation | ||
const classnamesComponents = element => (...params) => props => | ||
@@ -14,0 +20,0 @@ React.createElement(element, { |
8060
60
104