- yarn create vite
- npm init @eslint/config
- npx install-peerdeps --dev eslint-config-airbnb
module.exports = {
env: {
browser: true,
es2021: true
import { useMemo } from 'react' | |
import { injectScript } from '@module-federation/utilities' | |
import dynamic from 'next/dynamic' | |
// TODO: replace with a LRU cache or something similar | |
const remotePagesMap = new Map(); | |
function DynamicComponent({ remote, path, props }) { | |
const Component = useMemo(() => { | |
if (typeof window === 'undefined') { |