Build a Pluggable Widget Error in Connecting Mendix Data and Our Widget 3.2.1

1
Following the Build a Pluggable Widget course I reached here and hit an error which I think is related to the following: In characterCounterProps.d.ts: export interface CharacterCounterPreviewProps {     /**      * @deprecated Deprecated since version 9.18.0. Please use class property instead.      */     className: string;     class: string;     style: string;     styleObject?: CSSProperties;     readOnly: boolean;     content: { widgetCount: number; renderer: ComponentType<{ children: ReactNode; caption?: string }> }; } So according to this: Deprecated since version 9.18.0. Please use class property instead. We have to use class property, can someone show how to do so? And explain what is being used if not class?   I'm using Mendix 9.24.10
asked
1 answers
0

It is not an error, but a warning. So your widget should still build with this warning. I think it says use class and not className. Both are properties referring to assigning CSS classes to a React component. 

 

What happens when you remove the line with ‘className’ in it?

answered