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
+26-3Lines changed: 26 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This is literally copied from the React 0.14 codebase.
7
7
If you're using PropTypes with React, it would be silly to reference this standalone version.
8
8
9
9
10
-
###Usage
10
+
## Usage
11
11
12
12
```js
13
13
functioncheck(props, propTypes) {
@@ -34,7 +34,9 @@ let valid = check({
34
34
valid; // true
35
35
```
36
36
37
-
### Disabling in production build
37
+
## Production build
38
+
39
+
### Disabling
38
40
39
41
With webpack:
40
42
@@ -48,7 +50,28 @@ module.exports = {
48
50
};
49
51
```
50
52
51
-
### License
53
+
### Removing the definitions with React
54
+
55
+
When you are using this package with React like API, you might want to save bandwidth by removing the definitions.
56
+
You can use [babel-plugin-transform-react-remove-prop-types](https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types) for that use case, for instance:
0 commit comments