Files
qiming/qiming-vite-plugin-design-mode/examples/demo/src/react.ts
2026-06-01 13:43:09 +08:00

11 lines
474 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// React重新导出确保在所有情况下都能正确导入
export { useState, useEffect, useCallback, useMemo, useRef, useReducer } from 'react';
export { createContext, useContext } from 'react';
export { createElement, Fragment } from 'react';
export type { ReactNode, ReactElement, ComponentType } from 'react';
// React主对象重新导出兼容旧版本
import * as ReactModule from 'react';
export default ReactModule;
export const React = ReactModule;