@samitouri / QOS-React-2 / commits / b2dbccf9a2

Rename lower case variables in JSX to upper case

We're trying to move to a convention where lower-case variables on JSX are always HTML/SVG tags rather than variables in scope. See: http://fb.me/react-jsx-lower-case Therefore, this diff renames existing uses to upper case variables. This throws an error on all these files, so I manually go rename all the variables. I then run lint to ensure that the rename doesn't leave any undeclared variables.

Sebastian Markbage committed Oct 7, 2014 at 10:26 UTC b2dbccf9a26e9980369b4666101b817559304c34
1 file changed +2 -2
src/core/__tests__/ReactCompositeComponent-test.js
+2 -2
@@ -98,8 +98,8 @@ describe('ReactCompositeComponent', function() {
98 console.log(this.getDOMNode());
99 },
100 render: function() {
101 - var component = this.state.component;
102 - return component ? <component /> : null;
101 + var Component = this.state.component;
102 + return Component ? <Component /> : null;
103 }
104 });
105