'How to use class component without extending React.Component
I have been given in built ui kit which has class based component without extending React.Component. Now i need to use those UI components for building UserInterfaces. Developer who had built this is not available. How can i use those components?
Eg: Below image shows a class based Input component. But when i import it has a normal component it throws error: "component appears to have a render method, but doesn't extend React.Component."
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|