How to create a non-empty comment node using JSX?

  javascript, jsx, vue.js, vuejs2, vuejs3

I’ve tried the following with no luck, wanted to produce a <!-- Baz --> node:

export default {
  render() {
    return (
      <strong>
        Foo
        {/* Baz */}
      </strong>
    )
  },
}

Source: Ask Javascript Questions

LEAVE A COMMENT