As with any virtual DOM based framework, you need to check if React has rendered the DOM (or any updates to it)
before you initialize GridStack or call its methods. This example shows how to make rendered
components widgets:
Render items, each with a reference
Convert each rendered item to a widget using the reference and the
makeWidget() function