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 | |
---|
1 | import wrapInStatefulComponent from './wrapInStatefulComponent';
|
---|
2 |
|
---|
3 | const addClassDecoratorSupport = (Comp) => {
|
---|
4 | const isSFC = !Comp.prototype;
|
---|
5 | return !isSFC ? Comp : wrapInStatefulComponent(Comp);
|
---|
6 | };
|
---|
7 |
|
---|
8 | export default addClassDecoratorSupport;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.