Skip to content

Commit

Permalink
Compiling the app.tsx file with Babel
Browse files Browse the repository at this point in the history
  • Loading branch information
zourdyzou committed Jun 25, 2022
1 parent 404dcd8 commit 796228c
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 2 deletions.
19 changes: 19 additions & 0 deletions bin/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var App = function App() {
return /*#__PURE__*/_react["default"].createElement("div", {
className: "App-container"
}, /*#__PURE__*/_react["default"].createElement("p", null, "Edit ", /*#__PURE__*/_react["default"].createElement("code", null, "src/App.tsx"), " and save to reload the browser"));
};

var _default = App;
exports["default"] = _default;
1 change: 1 addition & 0 deletions bin/helpers/CellsManipulator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"use strict";
1 change: 1 addition & 0 deletions bin/helpers/CellsManipulator.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"use strict";
1 change: 1 addition & 0 deletions bin/helpers/Field.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"use strict";
1 change: 1 addition & 0 deletions bin/helpers/Field.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"use strict";
5 changes: 5 additions & 0 deletions bin/react.d.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
14 changes: 14 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React, { FunctionComponent } from "react";

const App: FunctionComponent = () => {
return (
<div className="App-container">
<p>
Edit <code>src/App.tsx</code> and save to reload the browser
</p>
</div>
);
};


export default App;
2 changes: 1 addition & 1 deletion src/react.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FunctionComponent, PropsWithChildren } from 'react';
import { FunctionComponent, PropsWithChildren } from "react";

export type PropsWithChildrenOnly = PropsWithChildren<unknown>;
export type ReactFCWithChildren = FunctionComponent<PropsWithChildrenOnly>;
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@

/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
"skipLibCheck": true,
/* Skip type checking all .d.ts files. */
"jsx": "react"
}
}

0 comments on commit 796228c

Please sign in to comment.