Share react instance via global variable