From 007860f8f771a7ee62b1c384fbe4f741528a75d5 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 30 May 2022 14:26:54 -0400 Subject: react: Add Router hook & fix typescript issues (#68) * add rollup watch command, add pnpm lockfile * wait for react * add WIP patcher, window hook, and webpack * fix typescript, fix React, lint, add pnpm to gitignore * actually fix react * show frontend JS errors in console * cleanup * Add Router hook * Remove console.log * Expose routerHook in createPluginAPI Co-authored-by: Jonas Dellinger --- frontend/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend/tsconfig.json') diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 2901f27f..13b0c350 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -3,7 +3,8 @@ "outDir": "dist", "module": "ESNext", "target": "ES2020", - "jsx": "react-jsx", + "jsx": "react", + "jsxFactory": "window.SP_REACT.createElement", "declaration": false, "moduleResolution": "node", "noUnusedLocals": true, -- cgit v1.2.3