question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use of source.jsx scope for react

See original GitHub issue

Looks like ST4 now supports a scope: source.jsx for JSX containing files. It mainly sets up a custom jsx file icon. Should the react JSCustom config start using that scope instead?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Thom1729commented, May 12, 2021

It’s not deep-merged, no; if you want the example configurations plus changes, you’ll have to copy the configurations object and modify it.

0reactions
bcomnescommented, May 26, 2021

I’ve set the react syntax to the jsx scope, and things are working great (though I did have to modify some scopes on other plugins to get them to activate in the new jsx scope.

Closing for now, reopen if you feel there is more to do here. Perhaps in the future this can be made to be the default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'React' must be in scope when using JSX ... - Stack Overflow
Whenever we make a custom component in React using JSX, it is transformed into backward-compatible JS code with the ...
Read more >
Why do React need to be in scope for JSX - DEV Community ‍ ‍
Exactly : React must be in scope when using JSX . If we don't import it at the top of our file, the...
Read more >
eslint-plugin-react/react-in-jsx-scope.md at master - GitHub
When using JSX, <a /> expands to React.createElement("a") . Therefore the React variable must be in scope. If you are using the @jsx...
Read more >
Must React Be in Scope When Using JSX? - Upmostly
When you use JSX, the compiler transforms it into React function calls that the browser can understand. The old JSX transform turned JSX...
Read more >
Introducing the New JSX Transform – React Blog
What's Different in the New Transform? · Because JSX was compiled into React.createElement , React needed to be in scope if you used...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found