From bf28861146d2c54978ea58c7d775b7c81c7c8ce3 Mon Sep 17 00:00:00 2001 From: kinyaying Date: Fri, 3 Nov 2017 22:06:28 +0800 Subject: [PATCH] Update typechecking-with-proptypes.md add 'javascript' after ``` --- content/docs/typechecking-with-proptypes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/typechecking-with-proptypes.md b/content/docs/typechecking-with-proptypes.md index 6dc978a0b..1a1aa4a71 100644 --- a/content/docs/typechecking-with-proptypes.md +++ b/content/docs/typechecking-with-proptypes.md @@ -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 = {