bitovi / ylem

Add Observable View-Models to React components
https://bitovi.github.io/ylem/
MIT License
42 stars 2 forks source link

Upgrade chat and todomvc demos to use connect #163

Open justinbmeyer opened 6 years ago

justinbmeyer commented 6 years ago

They are currently written using v0.5, and should use the latest pre-release.

Chat To Do MVC

Related - #12 (ATM)

mikedane commented 6 years ago

Currently working on updating these demos. Is the intention to have them use the connect() pattern as described here, where you create a Store class that extends yelm's ObserveObject and connect it to the dumb react component?

As of right now these examples are using can-define with DefineMaps to store the state. I just wanna confirm that we're no longer going to be using DefineMaps.

Also is there any need to still use react-view-model? I'm not 100% sure what the difference between react-view-model and yelm is.

justinbmeyer commented 6 years ago

where you create a Store class that extends yelm's ObserveObject and connect it to the dumb react component?

Yup.

I just wanna confirm that we're no longer going to be using DefineMaps.

That's correct!

I'm not 100% sure what the difference between react-view-model and yelm is.

Ylem is the new way. We shouldn't use RVM anymore.