-
Type:
Task
-
Resolution: Fixed
-
Priority:
Normal
-
Affects Version/s: None
-
Component/s: None
This is the correct way to do it according to React devs:
https://github.com/facebook/react/commit/09348798a912c8682e57c35842aa7a007e13fdb9
We currently use both options inconsistently, so this will also make our code more consistent.