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
use all-contributors in react jsx #786
Comments
One solution is to use a JavaScript comment instead of an HTML comment. You could use something like: This way, JSX won't throw any errors, and you can still mark the beginning of your all-contributors section. Give it a try and see if it works for you! If you have any more questions, feel free to ask. |
hi thanks for your reply, I tried it but it didn’t work. https://github.com/apache/hertzbeat/blob/clean-home/home/src/pages/team/index.jsx#L128 https://github.com/apache/hertzbeat/blob/clean-home/.all-contributorsrc#L9 |
Is your feature request related to a problem? Please describe.
hi community, thanks for the great project.
We want to add
all-contributors
in react jsx file, however, becauseall-contributors
uses the HTML<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
to mark the beginning,<!--
is considered invalid in JSX.Is there any other good solution?
The text was updated successfully, but these errors were encountered: