preact
Version:
Fast 3kb React-compatible Virtual DOM library.
22 lines (19 loc) • 426 B
JavaScript
import { Component, Fragment, options } from 'preact';
export function initDevTools() {
const globalVar =
typeof globalThis !== 'undefined'
? globalThis
: typeof window !== 'undefined'
? window
: undefined;
if (
globalVar !== null &&
globalVar !== undefined &&
globalVar.__PREACT_DEVTOOLS__
) {
globalVar.__PREACT_DEVTOOLS__.attachPreact('10.26.5', options, {
Fragment,
Component
});
}
}