When using react-router-dom-v6 in vite, routing error Uncaught SyntaxError: Unexpected token '<'

Solution: Change "index.js" under "routes" in the routing table to "index.jsx". The correct file is as shown in the figure below.

Supongo que te gusta

Origin blog.csdn.net/hu_666666/article/details/133501510
Recomendado
Clasificación