Skip to content

Commit 6cb23d7

Browse files
committed
fix typo
1 parent c7d74e0 commit 6cb23d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ Please be minded that only if the component has more than one child node, you co
157157

158158
Components have many specific attributes which are called ”props” in React and can be of any type.
159159

160-
Sometimes you need a way to validate these props. You don't want users input anything into your components.
160+
Sometimes you need a way to validate these props. You don't want users input anything into your components.
161161

162-
React has a solution for this and it's called propTypes.
162+
React has a solution for this and it's called PropTypes.
163163

164164
```javascript
165165
var MyTitle = React.createClass({
@@ -173,7 +173,7 @@ var MyTitle = React.createClass({
173173
});
174174
```
175175

176-
The above component of `Mytitle` has a props of `title`. PropTypes tells React that title is required and its value should be string.
176+
The above component of `Mytitle` has a props of `title`. PropTypes tells React that the title is required and its value should be string.
177177

178178
Now we give `Title` a number value.
179179

0 commit comments

Comments
 (0)