I'm trying to enable jsx support by default for all js files.
I took this example with jsx embedded into .js files and wrote the following hook:
(message "now set to: %s" web-mode-content-type)))
When I open a file, web mode is enabled, but jsx is not highlighted.
My bad. Restarted emacs and now everything is working as it supposed to.
@neverov have just restarted or "updated and restarted" ?
Well, the first time I wrote this piece, executed it in place (in init.el) and reopened buffers (no effect), then just restarted emacs and it worked; I don't know emacs internals well enough to determine if there is an actual problem or it's just my setup or something else.