Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 84bcbb5

Browse files
committed
refactor: update react import url
1 parent e08fab5 commit 84bcbb5

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

framework/react/anchor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
useEffect,
99
useMemo,
1010
lazy
11-
} from 'https://esm.sh/react@17.0.1'
11+
} from 'https://esm.sh/react'
1212
import util from '../../shared/util.ts'
1313
import events from '../core/events.ts'
1414
import { redirect } from '../core/routing.ts'

framework/react/bootstrap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ComponentType, createElement } from 'https://esm.sh/react@17.0.1'
2-
import { hydrate, render } from 'https://esm.sh/react-dom@17.0.1'
1+
import { ComponentType, createElement } from 'https://esm.sh/react'
2+
import { hydrate, render } from 'https://esm.sh/react-dom'
33
import { importModule, trimModuleExt } from '../core/module.ts'
44
import { RouteModule, Routing, RoutingOptions } from '../core/routing.ts'
55
import { loadPageDataFromTag } from './pagedata.ts'

framework/react/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createContext } from 'https://esm.sh/react@17.0.1'
1+
import { createContext } from 'https://esm.sh/react'
22
import type { RouterURL } from '../../types.ts'
33
import { createBlankRouterURL } from '../core/routing.ts'
44
import { createNamedContext } from './helper.ts'

framework/react/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, createElement, CSSProperties } from 'https://esm.sh/react@17.0.1'
1+
import { Component, createElement, CSSProperties } from 'https://esm.sh/react'
22

33
export class ErrorBoundary extends Component {
44
state: { error: Error | null }

framework/react/head.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
useContext,
99
useEffect,
1010
useMemo
11-
} from 'https://esm.sh/react@17.0.1'
11+
} from 'https://esm.sh/react'
1212
import util from '../../shared/util.ts'
1313
import { SSRContext } from './context.ts'
1414
import Script from './script.ts'

framework/react/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createContext } from 'https://esm.sh/react@17.0.1'
1+
import { createContext } from 'https://esm.sh/react'
22
import util from '../../shared/util.ts'
33

44
const REACT_FORWARD_REF_TYPE = util.supportSymbolFor ? Symbol.for('react.forward_ref') : 0xead0

framework/react/hoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
ReactNode,
77
useEffect,
88
useState
9-
} from 'https://esm.sh/react@17.0.1'
9+
} from 'https://esm.sh/react'
1010
import { useDeno, useRouter } from './hooks.ts'
1111
import util from '../../shared/util.ts'
1212

framework/react/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useContext, useMemo } from 'https://esm.sh/react@17.0.1'
1+
import { useContext, useMemo } from 'https://esm.sh/react'
22
import util from '../../shared/util.ts'
33
import type { RouterURL } from '../../types.ts'
44
import events from '../core/events.ts'

framework/react/pageprops.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ComponentType } from 'https://esm.sh/react@17.0.1'
1+
import { ComponentType } from 'https://esm.sh/react'
22
import type { RouterURL } from '../../types.ts'
33
import { E400MissingComponent } from './error.ts'
44
import { isLikelyReactComponent } from './helper.ts'

framework/react/renderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { createElement, ComponentType, ReactElement } from 'https://esm.sh/react@17.0.1'
2-
import { renderToString } from 'https://esm.sh/react-dom@17.0.1/server'
1+
import { createElement, ComponentType, ReactElement } from 'https://esm.sh/react'
2+
import { renderToString } from 'https://esm.sh/react-dom/server'
33
import util from '../../shared/util.ts'
44
import type { FrameworkRenderResult } from '../../server/renderer.ts'
55
import type { RouterURL } from '../../types.ts'

0 commit comments

Comments
 (0)