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?