Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "stardust", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Semantic UI components for React.", | ||
"main": "index.js", | ||
"files": [ | ||
"src/components" | ||
"src" | ||
], | ||
@@ -9,0 +9,0 @@ "scripts": { |
@@ -1,17 +0,4 @@ | ||
[](https://app.wercker.com/TechnologyAdvice/stardust) [](https://codeclimate.com/github/TechnologyAdvice/stardust) [](https://gemnasium.com/TechnologyAdvice/stardust) | ||
``` | ||
. | ||
* . . . | ||
. (*.) . * . | ||
. ( .(.. ) ) | ||
. .( (..* ).*) . | ||
( * . ). .) . | ||
. ( (. *.) . | ||
. . * stardust | ||
.* . | ||
``` | ||
>[React](https://facebook.github.io/react/) component library based on [Semantic UI](http://semantic-ui.com/). | ||
# Stardust [](https://app.wercker.com/TechnologyAdvice/stardust) [](https://codeclimate.com/github/TechnologyAdvice/stardust) [](https://gemnasium.com/TechnologyAdvice/stardust) | ||
## Install | ||
[React](https://facebook.github.io/react/) component library based on [Semantic UI](http://semantic-ui.com/). | ||
@@ -23,3 +10,3 @@ ``` | ||
## Learn | ||
Checkout the [Documentation](https://technologyadvice.github.io/stardust/). | ||
Check out the [Documentation](https://technologyadvice.github.io/stardust/). | ||
@@ -29,2 +16,37 @@ Review our [Component Guidelines] | ||
## Getting Started | ||
Hey, we're in development. Minor versions may introduce **breaking changes until v1**. | ||
### Babel | ||
Stardust is built with ES6 and ES7. Use Babel with the [stage 0](http://babeljs.io/docs/usage/experimental/#enable-by-stage) option to enable these features. We suggest using a [.babelrc](http://babeljs.io/docs/usage/babelrc/) file, which is also picked up by the webpack [babel-loader](https://github.com/babel/babel-loader). | ||
### Usage | ||
**ES6** | ||
```jsx | ||
import React, {Component} from 'react'; | ||
import {Button} from 'stardust'; | ||
export default class TryStardust extends Component { | ||
render() { | ||
return <Button>Hello</Button>; | ||
} | ||
} | ||
``` | ||
**ES5** | ||
```js | ||
var React = require('react'); | ||
var stardust = require('stardust'); | ||
var Button = stardust.Button; | ||
var TryStardust = React.createClass({ | ||
render: function() { | ||
return <Button>Make it happen!</Button>; | ||
} | ||
}); | ||
module.exports = TryStardust; | ||
``` | ||
## Develop | ||
@@ -31,0 +53,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26685
28
830
69
1