CVarisco / create-component-app

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

Import styles into .js #11

Closed labithiotis closed 7 years ago

labithiotis commented 7 years ago

This PR adds a style file import into all Pure, Class and Stateless templates.

CVarisco commented 7 years ago

Hi @labithiotis cool tip!

I'm creating a new file common.template.js where there are the common part of the templates (like imports and in the future the component lifecycle methods)

Thanks for your support 🙂

labithiotis commented 7 years ago

Not sure custom template is the place for this, I just thought you missed importing styles because I assumed you were using something like css-modules/styled components but if not then maybe custom template is the way forward.

CVarisco commented 7 years ago

@labithiotis it has nothing to do with it. I created a common file and now I'm writing test for that part, look here to have more information

Thanks 👍