Export Values from Components through Sinks in Cycle.js

InstructorAndré Staltz

Share this video with your friends

Send Tweet

Our app is not yet a BMI calculator, because it only has two sliders, but doesn't show the calculated BMI number. In this lesson we will learn how to export any stream from a child component and use it in the parent component, in order to display the BMI calculation on the DOM.

Rado
~ 7 years ago

You added .remember() after .flatten() but there is no explanation for this step.

GuichiZhao
~ 7 years ago

@Rado, actually, .remember() is really important, I followed up the video and the code just do not work. I took me quite a while to figure out I need remember() in order to make the code run !!!