mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(react): building app for production now works correctly with vite (#24515)
resolves #24229
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { AnimationBuilder } from '@ionic/core/components';
|
||||
import React from 'react';
|
||||
import React, { createElement } from 'react';
|
||||
|
||||
import { NavContext } from '../contexts/NavContext';
|
||||
import { RouterOptions } from '../models';
|
||||
@ -104,7 +104,7 @@ export const createRoutingComponent = <PropType, ElementType>(
|
||||
newProps.onClick = this.handleClick;
|
||||
}
|
||||
|
||||
return React.createElement(tagName, newProps, children);
|
||||
return createElement(tagName, newProps, children);
|
||||
}
|
||||
|
||||
static get displayName() {
|
||||
|
Reference in New Issue
Block a user