source: imaps-frontend/node_modules/react-universal-interface/src/addClassDecoratorSupport.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 249 bytes
Line 
1import wrapInStatefulComponent from './wrapInStatefulComponent';
2
3const addClassDecoratorSupport = (Comp) => {
4 const isSFC = !Comp.prototype;
5 return !isSFC ? Comp : wrapInStatefulComponent(Comp);
6};
7
8export default addClassDecoratorSupport;
Note: See TracBrowser for help on using the repository browser.