Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 17, 2021
1 parent 8fb0b4c commit e87b947
Show file tree
Hide file tree
Showing 253 changed files with 2,520 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var x = (
<>
<div>
<div key="1" />
<div key="2" meow="wolf" />
<div key="3" />
<div {...props} key="4" />
</div>
</>
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"runtime": "automatic"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { createElement as _createElement } from "react";
import { jsxs as _jsxs } from "react/jsx-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { Fragment as _Fragment } from "react/jsx-runtime";

var x = /*#__PURE__*/_jsx(_Fragment, {
children: /*#__PURE__*/_jsxs("div", {
children: [/*#__PURE__*/_jsx("div", {}, "1"), /*#__PURE__*/_jsx("div", {
meow: "wolf"
}, "2"), /*#__PURE__*/_jsx("div", {}, "3"), /*#__PURE__*/_createElement("div", { ...props,
key: "4"
})]
})
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const Bar = () => {
const Foo = () => {
const Component = ({thing, ..._react}) => {
if (!thing) {
var _react2 = "something useless";
var b = _react3();
var c = _react5();
var jsx = 1;
var _jsx = 2;
return <div />;
};
return <span />;
};
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"runtime": "automatic"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { jsx as _jsx2 } from "react/jsx-runtime";

const Bar = () => {
const Foo = () => {
const Component = ({
thing,
..._react
}) => {
if (!thing) {
var _react2 = "something useless";

var b = _react3();

var c = _react5();

var jsx = 1;
var _jsx = 2;
return /*#__PURE__*/_jsx2("div", {});
}

;
return /*#__PURE__*/_jsx2("span", {});
};
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/** @jsxImportSource baz */
var x = (<div><span /></div>);
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { jsx as _jsx } from "baz/jsx-runtime";

/** @jsxImportSource baz */
var x = _jsx("div", {
children: _jsx("span", {})
});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = (<div><span /></div>);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"importSource": "foo",
"runtime": "automatic"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { jsx as _jsx } from "foo/jsx-runtime";

var x = _jsx("div", {
children: _jsx("span", {})
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var x = (
<div>
{/* A comment at the beginning */}
{/* A second comment at the beginning */}
<span>
{/* A nested comment */}
</span>
{/* A sandwiched comment */}
<br />
{/* A comment at the end */}
{/* A second comment at the end */}
</div>
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Component
{...props}
sound="moo" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { jsx as _jsx } from "react/jsx-runtime";
_jsx(Component, {
...props,
sound: "moo"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var foo = function () {
return () => <this />;
};

var bar = function () {
return () => <this.foo />;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { jsx as _jsx } from "react/jsx-runtime";
var foo = function() {
return (function() {
return _jsx(this, {
});
}).bind(this);
};
var bar = function() {
return (function() {
return _jsx(this.foo, {
});
}).bind(this);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var div = <Component {...props} foo="bar" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { jsx as _jsx } from "react/jsx-runtime";
var div = _jsx(Component, {
...props,
foo: "bar"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var x =
<div>
foo
{"bar"}
baz
<div>
buz
bang
</div>
qux
{null}
quack
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
var x = _jsxs("div", {
children: [
"foo",
"bar",
"baz",
_jsx("div", {
children: [
"buz bang"
]
}),
"qux",
null,
"quack"
]
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var Component;
Component = React.createClass({
render: function render() {
return null;
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var Component;
Component = React.createClass({
render: function render() {
return null;
},
displayName: "Component"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default React.createClass({
render: function render() {
return null;
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default React.createClass({
displayName: "input",
render: function render() {
return null;
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var Whateva = React.createClass({
displayName: "Whatever",
render: function render() {
return null;
}
});

var Bar = React.createClass({
"displayName": "Ba",
render: function render() {
return null;
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var Whateva = React.createClass({
displayName: "Whatever",
render: function render() {
return null;
}
});
var Bar = React.createClass({
"displayName": "Ba",
render: function render() {
return null;
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exports = {
Component: React.createClass({
render: function render() {
return null;
}
})
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
exports = {
Component: React.createClass({
render: function render() {
return null;
},
displayName: "Component"
})
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exports.Component = React.createClass({
render: function render() {
return null;
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
exports.Component = React.createClass({
render: function render() {
return null;
},
displayName: "Component"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var Component = React.createClass({
render: function render() {
return null;
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var Component = React.createClass({
render: function render() {
return null;
},
displayName: "Component"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var x = (
<>
<div>
<div key="1" />
<div key="2" meow="wolf" />
<div key="3" />
<div {...props} key="4" />
</div>
</>
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"plugins": [
[
"transform-react-jsx",
{
"autoImport": "namedExports",
"runtime": "automatic"
}
]
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { createElement as _createElement } from "react";
import { jsxs as _jsxs } from "react/jsx-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { Fragment as _Fragment } from "react/jsx-runtime";

var x = /*#__PURE__*/_jsx(_Fragment, {
children: /*#__PURE__*/_jsxs("div", {
children: [/*#__PURE__*/_jsx("div", {}, "1"), /*#__PURE__*/_jsx("div", {
meow: "wolf"
}, "2"), /*#__PURE__*/_jsx("div", {}, "3"), /*#__PURE__*/_createElement("div", { ...props,
key: "4"
})]
})
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Text>
To get started, edit index.ios.js!!!{"\n"}
Press Cmd+R to reload
</Text>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { jsxs as _jsxs } from "react/jsx-runtime";
_jsxs(Text, {
children: [
"To get started, edit index.ios.js!!!",
"\n",
"Press Cmd+R to reload"
]
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import * as React from "react";

var x = <React.Fragment key="foo"></React.Fragment>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { jsx as _jsx } from "react/jsx-runtime";
import * as React from "react";
var x = _jsx(React.Fragment, {
}, "foo");
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = <></>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
var x = _jsx(_Fragment, {
});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var x = <><div /></>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
var x = _jsx(_Fragment, {
children: [
_jsx("div", {
})
]
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var x = (
<div>
{[<span key={'0'} />, <span key={'1'} />]}
</div>
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { jsx as _jsx } from "react/jsx-runtime";

var x = /*#__PURE__*/_jsx("div", {
children: [/*#__PURE__*/_jsx("span", {}, '0'), /*#__PURE__*/_jsx("span", {}, '1')]
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var x = (
<div>
<span />
{[<span key={'0'} />, <span key={'1'} />]}
</div>
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
var x = _jsxs("div", {
children: [
_jsx("span", {
}),
[
_jsx("span", {
}, "0"),
_jsx("span", {
}, "1")
]
]
});
Loading

0 comments on commit e87b947

Please sign in to comment.