React-Native: comments not supported
See original GitHub issueVersion
2.0.0
Reproduction
const A = styled.View`
/* I'm a comment */
`
const B = () => <A />
// render this in react-native
Steps to reproduce
Add any comment in a styled-component definition.
Expected Behavior
Comments get stripped out.
Actual Behavior
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
React Native Comments - 2 Ways to Add Comments in JSX
Add Comments in React Native JSX using Visual Studio Code Editor. Ctrl + / on Windows + Linux. Cmd + / on MacOS....
Read more >How to use comments in React - Stack Overflow
Two ways to add comments in React Native · // (double forward slash) is used to comment only a single line in React...
Read more >How to comment in React JSX - Wes Bos
To install, Preferences → Browse Packages → Put snippet in User folder . I'm still on a hunt for a fix to get...
Read more >JavaScript Comments - W3Schools
Any text between /* and */ will be ignored by JavaScript. This example uses a multi-line comment (a comment block) to explain the...
Read more >React Native Not Working : r/Jetbrains - Reddit
Dont create the project through IntelliJ (or Webstorm). The official ReactNative guide recommends using cli to creat projects via npx react- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in #1041 by @ckknight, thanks!
https://github.com/styled-components/styled-components/pull/1041