Initial code
This commit is contained in:
parent
7612a0de79
commit
ecb354cf6e
10 changed files with 2883 additions and 128 deletions
7
src/App.tsx
Normal file
7
src/App.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import type { Component } from "solid-js";
|
||||
|
||||
const App: Component = () => {
|
||||
return <p></p>;
|
||||
};
|
||||
|
||||
export default App;
|
||||
2
src/index.css
Normal file
2
src/index.css
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
@import "tailwindcss";
|
||||
@plugin "daisyui";
|
||||
16
src/index.tsx
Normal file
16
src/index.tsx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/* @refresh reload */
|
||||
import './index.css';
|
||||
import { render } from 'solid-js/web';
|
||||
import 'solid-devtools';
|
||||
|
||||
import App from './App';
|
||||
|
||||
const root = document.getElementById('root');
|
||||
|
||||
if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
|
||||
throw new Error(
|
||||
'Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got misspelled?',
|
||||
);
|
||||
}
|
||||
|
||||
render(() => <App />, root!);
|
||||
Loading…
Add table
Add a link
Reference in a new issue