Skip to content

Commit

Permalink
chore: Release v0.4.2
Browse files Browse the repository at this point in the history
Support React-0.14
  • Loading branch information
jessy1092 committed Oct 11, 2015
1 parent bbcb010 commit eb43f28
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,42 @@ Pure inline style github fork ribbon on React component. The inline style css is
npm install react-github-fork-ribbon
```

Ex.
Ex. React 0.14
```js
var React = require('react');
var ReactDOM = require('react-dom');
var GitHubForkRibbon = require('react-github-fork-ribbon');

var Content = React.createClass({

render: function () {
return (
<GitHubForkRibbon href="//www.google.com"
target="_blank"
<GitHubForkRibbon href="//www.google.com"
target="_blank"
position="right">
Fork me on GitHub
</GitHubForkRibbon>
);
}
});

ReactDOM.render(
<Content />,
document.getElementById('content')
);
```

Ex. React 0.13
```js
var React = require('react');
var GitHubForkRibbon = require('react-github-fork-ribbon');

var Content = React.createClass({

render: function () {
return (
<GitHubForkRibbon href="//www.google.com"
target="_blank"
position="right">
Fork me on GitHub
</GitHubForkRibbon>
Expand Down Expand Up @@ -66,6 +91,10 @@ It has four color.

## Release Notes

### Version 0.4.2 - 2015/10/11

- Support React 0.14

### Version 0.4.1 - 2015/06/29

- Insert the relevant browser prefix.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-github-fork-ribbon",
"description": "Pure inline style github fork ribbon on React component",
"version": "0.4.1",
"version": "0.4.2",
"keywords": [
"fork",
"GitHub",
Expand Down

0 comments on commit eb43f28

Please sign in to comment.