-
Notifications
You must be signed in to change notification settings - Fork 138
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
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.
- Loading branch information
1 parent
4caa80c
commit 7cb4ed4
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.