Thinking in react in PureScript