JS is really good at FP, but it doesn't have any real concept of function purity and isolating side effects. Rust has constant functions, for one: https://doc.rust-lang.org/reference/const_eval.html
No it's just bad code/devops
class is a perfectly valid property in jsx, as it just gets mapped to `{"class": ...}`, however react adopts to use className instead because of the dom api `el.className = ...`, but also some stuff like older versions…
JS is really good at FP, but it doesn't have any real concept of function purity and isolating side effects. Rust has constant functions, for one: https://doc.rust-lang.org/reference/const_eval.html
No it's just bad code/devops
class is a perfectly valid property in jsx, as it just gets mapped to `{"class": ...}`, however react adopts to use className instead because of the dom api `el.className = ...`, but also some stuff like older versions…