Browse Source

コンソールログ出力の制御 ひな形

develop
sosuke.iwabuchi 2 years ago
parent
commit
24145ffb41
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/index.tsx

+ 3
- 0
src/index.tsx View File

@@ -3,6 +3,9 @@ import App from "./App";
import "./index.css";
import reportWebVitals from "./reportWebVitals";

// コンソールログ出力の抑制
// process.env.NODE_ENV !== "development" && (console.log = () => {});

const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement
);


Loading…
Cancel
Save