Skip to content

Commit f1b4474

Browse files
committed
feat(core): expose access to $jsx as Framework7.Component.$jsx
1 parent 05e447a commit f1b4474

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/modules/component/component-class.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import $h from './$h.js';
55
import { id as generateId, merge, eventNameToColonCase, deleteProps } from '../../shared/utils.js';
66
import vdom from './vdom.js';
77
import patch from './patch.js';
8+
import $jsx from './$jsx.js';
89

910
class Component {
1011
constructor(app, component, props = {}, { el, context, children } = {}) {
@@ -338,4 +339,6 @@ class Component {
338339
}
339340
}
340341

342+
Component.$jsx = $jsx;
343+
341344
export default Component;

0 commit comments

Comments
 (0)