This is how the single quotes are escaped in the js-jsx-mode documentation in emacs master:
http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/js.el?id=a7e302dc1dc18770aaf9eeedfd638f73b574bc19#n3787
(define-derived-mode js-jsx-mode js-mode "JSX"
"Major mode for editing JSX.
To customize the indentation for this mode, set the SGML offset
variables (`sgml-basic-offset', `sgml-attribute-offset' et al.)
locally, like so:
(defun set-jsx-indentation ()
(setq-local sgml-basic-offset js-indent-level))
(add-hook \\='js-jsx-mode-hook #\\='set-jsx-indentation)"
(define-derived-mode js2-jsx-mode js2-mode "JSX-IDE"
"Major mode for editing JSX code.
To customize the indentation for this mode, set the SGML offset
variables (`sgml-basic-offset' et al) locally, like so:
(defun set-jsx-indentation ()
(setq-local sgml-basic-offset js2-basic-offset))
(add-hook 'js2-jsx-mode-hook #'set-jsx-indentation)" ; Missing escapes for single quotes on this line
PS: I was against the curly quotes too. But now I like them :)