Repo: Playground code refactor: Playground.tsx state switches #7630
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
repo maintenance
things to do with maintenance of the repo, and not with code/docs
website: playground
Suggestion
From #6843 (comment), referring to all the logical ternaries in
Playground.tsx
:https://github.com/typescript-eslint/typescript-eslint/pull/6843/files#diff-c76545bc907e11e58eb71533f91f9887abb2a21dc4d8d2a389317dffbbf5a72c
There are indeed a lot of logical conditions in that file. It'd be nice to streamline the logic a bit to be more readable / straightforward / less complex. Maybe a dedicated component or two? Maybe an enum that gets switched on in render logic?
The text was updated successfully, but these errors were encountered: