Instructor: Configure E composed by importing from recompose. We need set observable config. We set the observable config with RXJS config from recompose/ RXJS observable config. Simply invoke that function with that config. Now the other functions we bring in like component from stream will be configured for RXJS.
Now with component from stream I'll go ahead and delete the function that's currently assigned to app. I'll say component from stream, which takes a function where the argument is a stream of props and returns a stream that outputs JSX.
Just start with props map. We'll reformat this for some space. Props map. These props are props coming in from the stream now. We'll map that to just some JSX. I'll just say streaming. Hit save there and you can see we get streaming.
The simplest example that can prove this is working is using observable, which is found in RXJS. Import observable. Observable.interval, so every one second we'll map and then this takes in a count. Then instead of streaming we'll output the count.
Now you can see we have zero, one, two because this observable is counting every one second and increment and outputting this JSX with that new value.