Skip to content

effectiveinc/react-rx-props

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Rx Props

Take a React element that receives a RxJS Observable as a property and replace it with a subscribed property of the same name.

Example

Assumes that the prop rxStore being passed is an RxJS observable with a .title property. When the observable stream updates with a new title value TitleComponent will update as well.

import RxProps from 'react-rx-props';

const TitleComponent = ({
  rxStore
}) => (<h1>{ rxStore.title }</h1>);

export default RxProps(TitleComponent);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published