Skip to content

Fix typos in prefer-es6-class.md #2425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2019
Merged
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions docs/rules/prefer-es6-class.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce ES5 or ES6 class for React Components (react/prefer-es6-class)

React offers you two way to create traditional components: using the ES5 `create-react-class` module or the new ES6 class system. This rule allow you to enforce one way or another.
React offers you two ways to create traditional components: using the ES5 `create-react-class` module or the new ES6 class system. This rule allows you to enforce one way or another.

## Rule Options

Expand Down Expand Up @@ -36,7 +36,7 @@ class Hello extends React.Component {

### `never` mode

Will enforce ES5 classes for React Components
Will enforce ES5 classes for React Components.

The following patterns are considered warnings:

Expand Down