We use a function here rather than registering widgets at the top-level of the file to avoid circular dependencies. Logic that needs core widget functionality (like a prod or in tests) need to call this function before trying to use that logic.
We use a function here rather than registering widgets at the top-level of the file to avoid circular dependencies. Logic that needs core widget functionality (like a prod or in tests) need to call this function before trying to use that logic.