Hi, I’m trying to get a component’s name and insert it as a class name. A google search tells me I should use this.constructor.name
, but that doesn’t seem to work here.
Eg:
1function OrderLineItems(props) {2 return (3 4 5 )6}7
Does anyone have a solution for this?