create-comate-pagebuilder 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-comate-pagebuilder",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Create a modern, minimalist React + Vite + Tailwind CSS project",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "PageBuilder-react-template",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -1,12 +1,14 @@
1
- import { Routes, Route } from 'react-router'
1
+ import { Routes, Route, HashRouter } from 'react-router'
2
2
  import Home from './pages/Home'
3
3
 
4
4
  function App() {
5
5
  return (
6
6
  <div className="min-h-screen">
7
- <Routes>
8
- <Route path="/" element={<Home />} />
9
- </Routes>
7
+ <HashRouter>
8
+ <Routes>
9
+ <Route path="/" element={<Home />} />
10
+ </Routes>
11
+ </HashRouter>
10
12
  </div>
11
13
  )
12
14
  }
@@ -1,13 +1,10 @@
1
1
  import React from 'react'
2
2
  import ReactDOM from 'react-dom/client'
3
- import { HashRouter } from 'react-router'
4
3
  import App from './App.jsx'
5
4
  import './index.css'
6
5
 
7
6
  ReactDOM.createRoot(document.getElementById('root')).render(
8
7
  <React.StrictMode>
9
- <HashRouter>
10
- <App />
11
- </HashRouter>
8
+ <App />
12
9
  </React.StrictMode>,
13
10
  )