Skip to content

Commit

Permalink
feat(content): add render app > solid (matschik#157)
Browse files Browse the repository at this point in the history
* feat(content): add render app > solid

* fix: update Solid file sort

* doc: update readme
  • Loading branch information
liou666 authored Feb 28, 2023
1 parent 92e8694 commit f9509a7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ How do we solve this ? Developers love having framework overview by examples. It
- [x] Checkbox
- [x] Radio
- [x] Select
- [ ] Webapp features
- [ ] Render app
- [x] Webapp features
- [x] Render app
- [x] Fetch data
- [x] Router link
- [x] Routing
Expand Down
3 changes: 3 additions & 0 deletions content/7-webapp-features/1-render-app/solid/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function App() {
return <h1>Hello world</h1>;
}
7 changes: 7 additions & 0 deletions content/7-webapp-features/1-render-app/solid/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<div id="app"></div>
<script type="module" src="./main.jsx"></script>
</body>
</html>
4 changes: 4 additions & 0 deletions content/7-webapp-features/1-render-app/solid/main.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { render } from "solid-js/web";
import App from "./App";

render(() => <App />, document.getElementById("app"));
2 changes: 1 addition & 1 deletion frameworks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default [
playgroundURL: "https://playground.solidjs.com/",
documentationURL: "https://www.solidjs.com/",
filesSorter(files) {
return sortAllFilenames(files, ["App.jsx"]);
return sortAllFilenames(files, ["index.html", "App.jsx"]);
},
},
{
Expand Down

0 comments on commit f9509a7

Please sign in to comment.