Skip to content

Commit 9c2b800

Browse files
authored
Update typechecking-with-proptypes.md Babel plugin-transform-class-properties (#3825)
1 parent ca08866 commit 9c2b800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/typechecking-with-proptypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ ReactDOM.render(
179179
);
180180
```
181181

182-
If you are using a Babel transform like [transform-class-properties](https://babeljs.io/docs/plugins/transform-class-properties/) , you can also declare `defaultProps` as static property within a React component class. This syntax has not yet been finalized though and will require a compilation step to work within a browser. For more information, see the [class fields proposal](https://github.com/tc39/proposal-class-fields).
182+
If you are using a Babel transform like [plugin-proposal-class-properties](https://babeljs.io/docs/en/babel-plugin-proposal-class-properties/) (previously _plugin-transform-class-properties_), you can also declare `defaultProps` as static property within a React component class. This syntax has not yet been finalized though and will require a compilation step to work within a browser. For more information, see the [class fields proposal](https://github.com/tc39/proposal-class-fields).
183183

184184
```javascript
185185
class Greeting extends React.Component {

0 commit comments

Comments
 (0)