CVarisco / create-component-app

Tool to generate different types of React components from the terminal. 💻
MIT License
859 stars 58 forks source link

Component is not defined #17

Closed TryingToImprove closed 7 years ago

TryingToImprove commented 7 years ago

When creating a new statefull component the template is failing because Component is not defined.

I think it is because of the shared file setup from 3a2e51395c2fd925735d7fc5967c6d85d03fd543

A way to resolve the issue would be just to use React.Component instead for https://github.com/CVarisco/create-component-app/blob/master/src/templates/js/class.template.js.