homarr-labs / homarr

Avoid using this in stateless functional components JS-0452
Anti-pattern
Minor
4 months ago5 months old
Stateless functional components should not use this
111        }).extend({
112          addAttributes() {
113            return {
114              ...this.parent?.(),115              target: { default: null },
116            };
117          },
Stateless functional components should not use this
124        TableCell.extend({
125          addAttributes() {
126            return {
127              ...this.parent?.(),128              backgroundColor: {
129                default: undefined,
130                renderHTML: (attributes) => ({
Stateless functional components should not use this
 98        Image.extend({
 99          addAttributes() {
100            return {
101              ...this.parent?.(),102              width: { default: null },
103            };
104          },