These are chat archives for canjs/canjs

14th
Jun 2018
Gregg Roemhildt
@roemhildtg
Jun 14 2018 01:18
@justinbmeyer that is a great story. And a fantastic feature. Its helped me solve so many quick mistakes
Chasen Le Hara
@chasenlehara
Jun 14 2018 16:42
For anyone wondering the same thing as @srikkanthsiki, Manuel responded in the StealJS room: https://gitter.im/stealjs/steal?at=5b219f34e87f0c7bee8987dd
When we released react-view-model last year, I played around with integrating CanJS & React, and made this JS Bin with CanJS 3 & React 15: https://jsbin.com/tagale/2/edit?html,js,output
It would look something like this with CanJS 4 & React 16: https://jsbin.com/rahanumoku/1/edit?html,js,output
connectedCallback makes it way better by keeping everything in the view model 🙌
srikkanthsiki
@srikkanthsiki
Jun 14 2018 17:38
thanks
hi
@chasenlehara i am using Can 2.3
does can.Component.extend supports it ?
Chasen Le Hara
@chasenlehara
Jun 14 2018 18:05
@srikkanthsiki Yes, the CanJS 3 example is pretty similar to what you’d write in 2.3
The same principle applies; you can listen for the inserted event to do the initial render. https://v2.canjs.com/docs/can.Component.prototype.events.html