-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed as not planned
Labels
EnhancementImprovement to an existing featureImprovement to an existing feature
Milestone
Description
Increasing Access
Functional components are simpler, shorter, and more performant. Additionally, with the introduction of Hooks, they can effectively manage state and side effects
Feature enhancement details
We should convert the Editor/index.js class component to a functional component as it is recommended for improved simplicity, brevity, and performance.
p5.js-web-editor/client/modules/IDE/components/Editor/index.jsx
Lines 84 to 91 in 96c5470
class Editor extends React.Component { | |
constructor(props) { | |
super(props); | |
this.tidyCode = this.tidyCode.bind(this); | |
this.updateLintingMessageAccessibility = debounce((annotations) => { | |
this.props.clearLintMessage(); | |
annotations.forEach((x) => { |
Metadata
Metadata
Assignees
Labels
EnhancementImprovement to an existing featureImprovement to an existing feature