Skip to content

JSXTransformer does not provide an event for when script is fully loaded. #1938

Closed
@pisinr

Description

@pisinr

If I have page that mixed both JSX script (which use JSXTransformer.js) and JS script then JSX script get loaded after JS script.

So if I have

<script type="text/jsx" src="component.jsx"></script>
 <script src="app.js"></script>

Then I cannot refer to React classes created inside component.jsx in app.js. My workaround is to rename app.js to app.jsx.

JSXTransformer should have some kind of even callback that is called when jsx all script is loaded and ready to be used.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions