diff --git a/src/lib/react.ts b/src/lib/react.ts new file mode 100644 index 0000000..2a721d1 --- /dev/null +++ b/src/lib/react.ts @@ -0,0 +1,10 @@ +import ReactNamespace from 'react/index'; +import ReactDomNamespace from 'react-dom'; + +const React = window.React as typeof ReactNamespace; +const ReactDOM = window.ReactDOM as typeof ReactDomNamespace; + +export default React; +export { + ReactDOM +} \ No newline at end of file diff --git a/no-ports/auto-upgrade.js b/src/no-ports/auto-upgrade.js similarity index 100% rename from no-ports/auto-upgrade.js rename to src/no-ports/auto-upgrade.js diff --git a/no-ports/hack-all.js b/src/no-ports/hack-all.js similarity index 100% rename from no-ports/hack-all.js rename to src/no-ports/hack-all.js diff --git a/no-ports/hack-args.js b/src/no-ports/hack-args.js similarity index 100% rename from no-ports/hack-args.js rename to src/no-ports/hack-args.js diff --git a/no-ports/hack.js b/src/no-ports/hack.js similarity index 100% rename from no-ports/hack.js rename to src/no-ports/hack.js diff --git a/no-ports/recursive-copy.js b/src/no-ports/recursive-copy.js similarity index 100% rename from no-ports/recursive-copy.js rename to src/no-ports/recursive-copy.js diff --git a/no-ports/recursive-kill.js b/src/no-ports/recursive-kill.js similarity index 100% rename from no-ports/recursive-kill.js rename to src/no-ports/recursive-kill.js diff --git a/no-ports/recursive-run.js b/src/no-ports/recursive-run.js similarity index 100% rename from no-ports/recursive-run.js rename to src/no-ports/recursive-run.js diff --git a/no-ports/root.js b/src/no-ports/root.js similarity index 100% rename from no-ports/root.js rename to src/no-ports/root.js diff --git a/no-ports/run.js b/src/no-ports/run.js similarity index 100% rename from no-ports/run.js rename to src/no-ports/run.js