Flow provides two similar declarative structures that however serve different purposes:

Their main differences are the following:

The following playground projects of mine demonstrate the differences: