highlightjs / highlightjs/highlight.js

(javascript) JSX does not properly handle inline {} code

Open
#2,324 4 comments 2 reactions 1 assignee Claimed by @joshgoebel View on GitHub
enhancement help welcome language
Dominant language
JavaScript
Stars
25k
Forks
3.8k
Avg merge
11h 35m
Merged PRs (30d)
3

Description

Sample from #1915:

```js
import { Radio, Cell } from 'zarm';

class Demo extends React.Component {
constructor(props) {
super(props);
this.state = {
radio: '0',
};
}

render() {
return (


console.log(`radio to ${value}`)}
>
选项一
选项二
选项三

}
>
普通


选项一
选项二
选项三

}
>
指定默认值


选项一
选项二
选项三

}
>
禁用指定项


选项一
选项二
选项三

}
>
圆角


选项一
选项二
选项三

}
>
椭圆角


)
}
}

ReactDOM.render(, mountNode);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.