React -> Autoflow

tests pass!