Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pisinr opened this issue Jul 26, 2014 · 1 comment
Closed

Comments

@pisinr
Copy link

pisinr commented Jul 26, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants