I'm not sure if I understand it correctly or if I'm missing something. But by essence, the tiny fix is to translate React's className to the DOM element's class attribute. This is assuming the forEach loop is intended to pass the DOM attributes from the React component's props to the actual DOM element.
I'm not sure if I understand it correctly or if I'm missing something. But by essence, the tiny fix is to translate React's
className
to the DOM element'sclass
attribute. This is assuming theforEach
loop is intended to pass the DOM attributes from the React component's props to the actual DOM element.