babel-plugin-jsx-dom-expressions
Advanced tools
Comparing version 0.40.0-next.3 to 0.40.0-next.4
{ | ||
"name": "babel-plugin-jsx-dom-expressions", | ||
"description": "A JSX to DOM plugin that wraps expressions for fine grained change detection", | ||
"version": "0.40.0-next.3", | ||
"version": "0.40.0-next.4", | ||
"author": "Ryan Carniato", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "c7469ce1710314521d35f22a41de86a290565fe7" | ||
"gitHead": "cab83b177c12b8f9a2a98f13ff7d55936ab6a085" | ||
} |
@@ -12,3 +12,3 @@ # Babel Plugin JSX DOM Expressions | ||
This plugin treats all lowercase tags as html elements and mixed cased tags as Custom Functions. This enables breaking up your view into components. This library supports Web Component Custom Elements spec. Support for common camelcase event handlers like React, dom safe attributes like class and for, a simple ref property, and parsing of objects for style, and classList properties. | ||
This plugin treats all lowercase tags as html elements and mixed cased tags as Custom Functions. This enables breaking up your view into components. This library supports Web Component Custom Elements spec. Support for common camelcase event handlers like React, dom safe attributes like class and for, a simple ref property, and parsing of objects for style, and class properties. | ||
@@ -211,10 +211,2 @@ In general JSX Attribute Expressions are treated as attributes by default, with exception custom elements that will to properties and special fields like `class` and `style`. Plain string attributes will be treated as attributes. | ||
### classList | ||
This takes an object and assigns all the keys as classes which are truthy. | ||
```jsx | ||
<div classList={{ selected: isSelected(), editing: isEditing() }} /> | ||
``` | ||
### ... (spreads) | ||
@@ -221,0 +213,0 @@ |
Sorry, the diff of this file is too big to display
137263
3402
247