react-themeit icon indicating copy to clipboard operation
react-themeit copied to clipboard

refs can't be set on stateless components

Open flipace opened this issue 8 years ago • 0 comments

When using themeit with react 16 on a stateless component react will log an error about stateless components not supporting refs (ofc). Themeit should check the component type before adding the ref prop.

flipace avatar Nov 09 '17 15:11 flipace