Customizing a Flow
A Flow at it's minimum UI level is a React function component.
This component can be anything, the minimum code to implement :
import React from 'react'
export default function FunctionFlow() {
return <div>My flow component</div>
}
A Flow is an interface element that will basically store it's data to the Program and generate appropriate code.
It's then recommended to :
- implement
serialize
anddeserialize
methods to store and load Flow data. - implement
onCode
method that will generate code specific logic when executing the Flow on it's Client. - implement
onDelete
method to pop the Flow on the current Rail.
Have a look at uniflow-flow-javascript is the most basic Flow you can implement.