The functor-based version should be easier to use for beginners as it gives you a normal ReasonReact component (module). But it is not zero-cost.
The non-functor-based version is zero-cost, but you need to do React.createElement(...) yourself. It allows advanced use cases such as (re)creating your AppContainer based e.g. on permission changes.
React.createElement(...)
yourself. It allows advanced use cases such as (re)creating your AppContainer based e.g. on permission changes.