-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update website to use function components everywhere (#814)
There were a few large class components still in the website code, and this moves them to function components. This will be useful for dogfooding the hopefully-upcoming React Fast Refresh transform. Also upgrade React to latest.
- Loading branch information
1 parent
4caa80c
commit b9e563f
Showing
8 changed files
with
286 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
module.exports = { | ||
extends: ["plugin:react-hooks/recommended"], | ||
parserOptions: { | ||
project: `${__dirname}/tsconfig.json`, | ||
}, | ||
} | ||
rules: { | ||
"react-hooks/exhaustive-deps": "error", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.