function reactChecker() {
    if(globalThis.React) {
        registerReact()
    } else { 
        globalThis.React = {
            createElement:  ()      => console.log('React does not exist within the global scope'),
            Fragment:       (...x)  => x,
        }
    }
}
/*  Check if React and ReactDOM exist  */
Check if React and ReactDOM exist
Check if React and ReactDOM exist
function reactChecker() {
    if(globalThis.React) {
        registerReact()
    } else { 
        globalThis.React = {
            createElement:  ()      => console.log('React does not exist within the global scope'),
            Fragment:       (...x)  => x,
        }
    }
}
function reactChecker ( ) { if ( globalThis . React ) { registerReact ( ) } else { globalThis . React = { createElement : ( ) => console . log ( 'React does not exist within the global scope' ) , Fragment : ( ... x ) => x , } } }
Check if React and ReactDOM exist
Check if React and ReactDOM exist