Knockout and React together

KOLogo react

My team has built a large KO app over the last 2 years. KO has been a great library but its time to move on.

KO and React play well together since the core philosophy is the same, small libs doings one thing well.

We are not looking at mingling KO and React code, rather leave our KO code in place; start hooking in React components and look to evolve from there.

Components

Passing data

  • Data can be passed to React component via props in the KO binding
  • Use Amplify/SessionStorage to pass msgs between both KO/React

Now the KO component can be added to the DOM as usual and the rendering will be passed on to React.

Advertisements
This entry was posted in Tech bits, Web development. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s