project created with npx degit solidjs/templates/js my-app
Here is the code for App.jsx
import { createSignal } from 'solid-js';
const [input, setInput] = createSignal(1);
function App() {
return (
<div>
Current Value {input()}
<button onClick={(event)=>setInput(input()+1)}>Increment</button>
</div>
);
}
export default App;
and configuration for vite.config.js
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import devtools from 'solid-devtools/vite'
export default defineConfig({
plugins: [
devtools({
autoname: true,
}),
solidPlugin()],
server: {
port: 3000,
},
build: {
target: 'esnext',
},
});
installed package details-
"devDependencies": {
"solid-devtools": "^0.24.7",
"vite": "^4.1.1",
"vite-plugin-solid": "^2.5.0"
},
"dependencies": {
"solid-js": "^1.6.10"
}
screenshot of the dev tool

project created with
npx degit solidjs/templates/js my-appHere is the code for
App.jsxand configuration for
vite.config.jsinstalled package details-
screenshot of the dev tool
