- Install Sublime Text 3.
- Install Package Control.
- Via Package Control, install Project Specific Syntax Settings in Sublime Text.
- Via Package Control, install ReactJS.
- Open up your ReactJS files in Sublime Text. It’s easiest to do this by dragging and dropping a whole folder into Sublime Text. Save your open files and folders as a project if you haven’t already via Project > Save Project As.
- Open your project settings via Project > Edit Project.
Within the curly braces after the “folders” section, add a new section:
Update: with the ReactJS package now deprecated, I switched to the
Babel Sublime Text plugin. That
syntax_override should be the following: