EQuimper / VSC-React-Native-React-Redux-Snippets

Snippets for React and React-Native with a bit of Redux for es6/es7 user.
https://marketplace.visualstudio.com/items?itemName=EQuimper.react-native-react-redux
54 stars 31 forks source link

How to get constructor method also in ccs ? #12

Closed ghost closed 6 years ago

ghost commented 6 years ago

i want

constructor(props) {
    super(props);
    this.state = {  };
  }

instead of state = { }; when i type ccs, how can i get it ?

EQuimper commented 6 years ago

I’m gonna create a second version with the constructor. Gonna be call with cccs this is good for you ? :)

EQuimper commented 6 years ago

@sushmit-oodles Done just upload to version 1.6.0 :)

EQuimper commented 6 years ago

https://github.com/EQuimper/VSC-React-Native-React-Redux-Snippets#cccs-component-class-with-constructor

ghost commented 6 years ago

Amazing thanx a alot mate. :) Can i suggest more snippets in future if i come up with some new ideas if you dont mind ?

On 5 Mar 2018 11:04 pm, "Emanuel Quimper" notifications@github.com wrote:

https://github.com/EQuimper/VSC-React-Native-React-Redux- Snippets#cccs-component-class-with-constructor

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EQuimper/VSC-React-Native-React-Redux-Snippets/issues/12#issuecomment-370499041, or mute the thread https://github.com/notifications/unsubscribe-auth/AiStDQCWhYwN3y-TpWnqAUi2jMe9kl95ks5tbXcfgaJpZM4ScN0b .

EQuimper commented 6 years ago

Yes sure :)