Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b20f9d4
Typechecking with PropTypes
vvscode Feb 14, 2019
bbc880f
Typechecking with PropTypes
vvscode Feb 14, 2019
5014be8
Update nav
vvscode Feb 14, 2019
cea2850
Update content/docs/typechecking-with-proptypes.md
angryermine Feb 14, 2019
d477a7e
Update content/docs/typechecking-with-proptypes.md
angryermine Feb 14, 2019
fa3cdb5
Update content/docs/typechecking-with-proptypes.md
angryermine Feb 14, 2019
36aa870
Update content/docs/typechecking-with-proptypes.md
angryermine Feb 14, 2019
26fe782
Update content/docs/typechecking-with-proptypes.md
angryermine Feb 14, 2019
bc08962
Update content/docs/typechecking-with-proptypes.md
angryermine Feb 14, 2019
eda2c74
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
56c6721
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
a3adcef
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
247b333
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
f3dfab8
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
3d7221b
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
33af50a
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
736b825
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
a5e16f9
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
bac38ff
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
d82b464
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 14, 2019
52567f5
Update content/docs/typechecking-with-proptypes.md
ntishkevich Feb 15, 2019
fde8f7a
Update content/docs/typechecking-with-proptypes.md
ntishkevich Feb 15, 2019
1a6f305
Update content/docs/typechecking-with-proptypes.md
ntishkevich Feb 15, 2019
4eff932
props -> пропсы
vvscode Feb 15, 2019
7d69431
Update content/docs/typechecking-with-proptypes.md
lex111 Feb 15, 2019
f3a79fc
Fix notices from codereview
vvscode Feb 18, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update content/docs/typechecking-with-proptypes.md
Co-Authored-By: vvscode <v.vanchuk@tut.by>
  • Loading branch information
lex111 and vvscode authored Feb 14, 2019
commit 736b8259c2604bda098f436acbaea5c28c8b8ee8
2 changes: 1 addition & 1 deletion content/docs/typechecking-with-proptypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ ReactDOM.render(
);
```

Если вы используете одну из трансформаций Babel, вроде [transform-class-properties](https://babeljs.io/docs/plugins/transform-class-properties/) , то вы можете задать `defaultProps` как статическое свойство класса (для компонента-наследника от `React.Component`). Этот синтаксис еще не утвержден, так что для его работы в браузере нужна компиляция. Подробнее смотрите в [предложении о полях класса](https://github.com/tc39/proposal-class-fields).
Если вы используете один из Babel-плагинов по преобразованию кода, вроде [transform-class-properties](https://babeljs.io/docs/plugins/transform-class-properties/), то можете объявить `defaultProps` как статическое свойство класса (для компонента-наследника от `React.Component`). Этот синтаксис еще не утвержден, так что для его работы в браузере нужна компиляция. Подробнее смотрите в [предложении о полях класса](https://github.com/tc39/proposal-class-fields).

```javascript
class Greeting extends React.Component {
Expand Down