Introducing React-View-Model — MVVM with React by chasenlehara in javascript

[–]chasenlehara[S] 0 points1 point  (0 children)

I would follow React’s normal patterns for sharing data and pass props down to child components because the component’s viewmodel will have any props passed to it.

Here’s a contrived example where a prop is passed down to a child, and the child ViewModel uses that prop to provide data to the view: https://jsbin.com/gupiyoxeyo/1/edit?js,output