check commented document handlers
correctly set global react instance