Update index.jsx
According to https://www.solidjs.com/guides/rendering#entry > The first argument needs to be a function. Otherwise we can't properly track and schedule the reactive system. This simple ommission will cause your Effects not to run.
This commit is contained in:
+1
-1
@@ -4,4 +4,4 @@ import { render } from 'solid-js/web';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
|
||||
render(App, document.getElementById('root'));
|
||||
render(() => <App />, document.getElementById('root'));
|
||||
|
||||
Reference in New Issue
Block a user