quyduc
quyduc
SSolidJS
Created by Metru on 12/24/2023 in #support
Struggling to get FileRoutes working
By the way, just curious, what UI library you would recommend me to use. I'm new to SolidJS so not sure which one to choose to build my app.
37 replies
SSolidJS
Created by Metru on 12/24/2023 in #support
Struggling to get FileRoutes working
I see. Thank you very much Metru. Have a nice day
37 replies
SSolidJS
Created by Metru on 12/24/2023 in #support
Struggling to get FileRoutes working
So if I want to stick with Solid, it means I need to use solid-router right?
37 replies
SSolidJS
Created by Metru on 12/24/2023 in #support
Struggling to get FileRoutes working
oh ic ic
37 replies
SSolidJS
Created by Metru on 12/24/2023 in #support
Struggling to get FileRoutes working
No description
37 replies
SSolidJS
Created by Metru on 12/24/2023 in #support
Struggling to get FileRoutes working
No description
37 replies
SSolidJS
Created by Metru on 12/24/2023 in #support
Struggling to get FileRoutes working
// routes/index.tsx
export default function Index() {
return <div><h1>/</h1></div>;
}
// routes/index.tsx
export default function Index() {
return <div><h1>/</h1></div>;
}
37 replies
SSolidJS
Created by Metru on 12/24/2023 in #support
Struggling to get FileRoutes working
// App.tsx
// @refresh reload

import { Suspense } from "solid-js";
import { Router } from "@solidjs/router";
import { FileRoutes } from "@solidjs/start";
import "./App.css"

export default function App() {
return (
<Router root={(props) => <Suspense>{props.children}</Suspense>}>
<FileRoutes />
</Router>
);
}
// App.tsx
// @refresh reload

import { Suspense } from "solid-js";
import { Router } from "@solidjs/router";
import { FileRoutes } from "@solidjs/start";
import "./App.css"

export default function App() {
return (
<Router root={(props) => <Suspense>{props.children}</Suspense>}>
<FileRoutes />
</Router>
);
}
37 replies
SSolidJS
Created by Metru on 12/24/2023 in #support
Struggling to get FileRoutes working
No description
37 replies
SSolidJS
Created by Metru on 12/24/2023 in #support
Struggling to get FileRoutes working
Hi. I have been running into the same problem and have tried this solution but still didn't work for me. Is there any other thing that I need to do to get the FileRoutes working?
37 replies