Skip to content

Commit d908916

Browse files
authored
Merge pull request #9 from mbasso/react16
Upgrade to react 16
2 parents 7a136c0 + cfa724a commit d908916

26 files changed

+82
-301
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ es
77
coverage
88
_book
99
.nyc_output
10-
TODO.md
10+
TODO.md
11+
package-lock.json

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ node_js:
33
- "4"
44
- "5"
55
- "6"
6+
- "7"
7+
- "8"
68
script:
79
- npm run check:src
810
- npm run build

docs/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Here you can find the complete list of decorators, however we encourage you to r
2121
- [`@renderChildren`](components/renderChildren.md)
2222
- [`@renderComponent(component: React.Component)`](components/renderComponent.md)
2323
- [`@handleRenderError(handler: React.Component, string, function or nothing)`](components/handleRenderError.md)
24-
- [`@perf(options: Object)`](components/perf.md)
2524
- Functions
2625
- [`@autobind`](functions/autobind.md)
2726
- [`@log`](functions/log.md)

docs/components/bindProps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Bind the given props to the decorated component.
1111
class Foo extends React.Component {
1212

1313
static contextTypes = {
14-
foo: React.PropTypes.string,
14+
foo: PropTypes.string,
1515
}
1616

1717
static defaultProps = {

docs/components/clone.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Creates a new Component starting from the given one. Methods and attributes defi
88
class Foo extends React.Component{
99

1010
static propTypes = {
11-
foo: React.PropTypes.string,
11+
foo: PropTypes.string,
1212
}
1313

1414
static childContextTypes = {
15-
example: React.PropTypes.string,
15+
example: PropTypes.string,
1616
}
1717

1818
getChildContext() {
@@ -35,7 +35,7 @@ class Bar extends React.Component{
3535

3636
// replace Foo.propTypes
3737
static propTypes = {
38-
bar: React.PropTypes.string,
38+
bar: PropTypes.string,
3939
}
4040

4141
// replace Foo render
@@ -52,11 +52,11 @@ class Bar extends React.Component{
5252
// class Bar extends React.Component{
5353
//
5454
// static propTypes = {
55-
// bar: React.PropTypes.string,
55+
// bar: PropTypes.string,
5656
// }
5757
//
5858
// static childContextTypes = {
59-
// example: React.PropTypes.string,
59+
// example: PropTypes.string,
6060
// }
6161
//
6262
// getChildContext() {

docs/components/computedProps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Defines computed props to inject into the decorated component.
1414
class User extends React.Component {
1515

1616
static propTypes = {
17-
name: React.PropTypes.string,
18-
surname: React.PropTypes.string,
17+
name: PropTypes.string,
18+
surname: PropTypes.string,
1919
}
2020

2121
static defaultProps = {

docs/components/mapProps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Defines a middleware that take props, process them and return new props to the d
1616
class User extends React.Component {
1717

1818
static propTypes = {
19-
name: React.PropTypes.string,
20-
surname: React.PropTypes.string,
19+
name: PropTypes.string,
20+
surname: PropTypes.string,
2121
}
2222

2323
render() {

docs/components/perf.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

docs/components/propTypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Defines component's [propTypes](https://facebook.github.io/react/docs/reusable-c
66

77
```js
88
@propTypes({
9-
foo: React.PropTypes.string,
9+
foo: PropTypes.string,
1010
})
1111
class TextField extends React.Component {
1212

docs/components/renameProps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Renames props to inject into the decorated component.
1414
class Foo extends React.Component {
1515

1616
static propTypes = {
17-
bar: React.PropTypes.string,
17+
bar: PropTypes.string,
1818
}
1919

2020
render() {

0 commit comments

Comments
 (0)