I'm trying to build the simplest of scripts: add/remove css class based on DropdownField selection. I have some basic understanding of ReactJS but I'm clueless on how to get a ReactJS script working in SS.
I took a shot at following this: https://docs.silverstripe.org/en/4/developer_guides/customising_the_admin_interface/how_tos/extend_cms_interface/#reactjs-in-silverstripe but I just get a console warning: Uncaught SyntaxError: Unexpected token import
I'm looking for a very simple / basic ReactJS script that I could use as a boilerplate / starting point. Who can help me out? :-)