You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -164,8 +164,8 @@ NODE_ENV=production ./test
164
164
1. Iterates through all [JSX](https://facebook.github.io/react/docs/jsx-in-depth.html) element declarations.
165
165
1. Parses the `styleName` attribute value into anonymous and named CSS module references.
166
166
1. Finds the CSS class name matching the CSS module reference:
167
-
* If `styleName` value is a string literal, generates a string literal value.
168
-
* If `styleName` value is a [`jSXExpressionContainer`](https://github.com/babel/babel/tree/master/packages/babel-types#jsxexpressioncontainer), uses a helper function ([`getClassName`](./src/getClassName.js)) to construct the `className` value at the runtime.
167
+
* If `styleName` value is a string literal, generates a string literal value.
168
+
* If `styleName` value is a [`jSXExpressionContainer`](https://github.com/babel/babel/tree/master/packages/babel-types#jsxexpressioncontainer), uses a helper function ([`getClassName`](./src/getClassName.js)) to construct the `className` value at the runtime.
169
169
1. Removes the `styleName` attribute from the element.
170
170
1. Appends the resulting `className` to the existing `className` value (creates `className` attribute if one does not exist).
0 commit comments