|
|
|
|
|
by serve_yay
4167 days ago
|
|
Boy, people never want to accept this. On my team, designers write the HTML. They own markup & styling. Designers don't want to dig through JS files to change markup, but an even bigger problem is that it's only kinda-sorta markup. For example, if you want to set a class on an element in JSX, it's not class="", it's className="". Because class is a reserved word in JS. How many other little warts like that are there, and how are they supposed to remember stuff like that? It just wouldn't work without a lot of undue pain. |
|
Its just a single `render` method, generally living at the top or the bottom of a file; nothing complex.
Additionally, you stub out your static html markup first -- just like in a template -- and then you add interactivity. In an ideal world this always happens first.
It took our designer all of two minutes to learn the nuances of JSX -- className, that's it!
I would give it a shot, i'm sure they'll manage :)