Comparing version 0.1.7 to 0.1.8
{ | ||
"name": "nscss", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "CSS for Components", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/nscss.js", |
@@ -57,2 +57,4 @@ # NSCSS - CSS for Components | ||
```tsx | ||
import * as React from "react"; | ||
import { render } from "react-dom"; | ||
import { NSComponent, NSStateless, Stylesheet } from "nscss/react"; | ||
@@ -70,3 +72,2 @@ | ||
//NSComponent wraps react component | ||
@@ -89,4 +90,3 @@ const App = NSComponent(class extends React.Component<any, any>{ | ||
//attach all css into the document and set theme variables | ||
//set theme variables and attach all css into the document head | ||
Stylesheet.context.attach({ | ||
@@ -96,2 +96,4 @@ myColor: "red" | ||
render(<App/>, document.querySelector("#app")); | ||
``` | ||
@@ -98,0 +100,0 @@ |
44616
475