Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaller94/demo-react-styleguidist-js-inline-comment

Reproducible demo for https://github.com/styleguidist/react-styleguidist/issues/1189
https://github.com/jaller94/demo-react-styleguidist-js-inline-comment

Last synced: about 1 month ago
JSON representation

Reproducible demo for https://github.com/styleguidist/react-styleguidist/issues/1189

Awesome Lists containing this project

README

        

# demo-react-styleguidist-js-inline-comment
Reproducible demo for [a bug with JavaScript inline comment in react-styleguidist](https://github.com/styleguidist/react-styleguidist/issues/1189).

### Setup
```
git clone https://github.com/jaller94/demo-react-styleguidist-js-inline-comment.git
npm install
```

### Run
Either run the dev server `npm run-script server` or build it `npm run-script build`.

### Observing the issue
Open the styleguide in the browser (default for server: http://localhost:6060/).
When you open the JavaScript console, you should see this.

![JavaScript log output: Opening and closing comments work! JavaScript error: SyntaxError: missing } after function body. Learn More](screenshot.png)

These errors come from the second `` tag in `react-styleguide.html`, which is valid JavaScript in HTML.