Update typechecking-with-proptypes.md

add 'javascript' after ```
This commit is contained in:
kinyaying
2017-11-03 22:06:28 +08:00
committed by GitHub
parent bd04b6f8ab
commit bf28861146

View File

@@ -147,7 +147,7 @@ MyComponent.propTypes = {
You can define default values for your `props` by assigning to the special `defaultProps` property:
```
```javascript
const defaultProps = {
name: 'Stranger'
};
@@ -172,7 +172,7 @@ ReactDOM.render(
You can also put propTypes and defaultProps as static props inside React class.
```
```javascript
class Greeting extends Component {
static defaultProps = {