Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oxymarko #6

Open
Jack5079 opened this issue Feb 10, 2024 · 1 comment
Open

oxymarko #6

Jack5079 opened this issue Feb 10, 2024 · 1 comment

Comments

@Jack5079
Copy link
Member

Jack5079 commented Feb 10, 2024

marko can easily do streaming ssr and marko 6 adds resumablity

marko syntax is comically concise:

let/txt = "Hello"
input := txt
p -- the text is ${txt}

vs Svelte 5:

<script>
	let txt = $state("Hello")
</script>
<input bind:value={txt} />
<p>the text is {txt}</p>

or React:

import { useState } from "react"
export default function App() {
  const [txt, setTxt] = useState("Hello")
  return (
    <>
      <input value={txt} onChange={e => setTxt(e.target.value)} />
      <p>the text is {txt}</p>
    </>
  )
}

the marko 6 alpha releases this month

image

Marko Run doesn't let you define routes like @[username] in SvelteKit it has to be just $username so we need to find a way around that

https://markojs.com/playground/v6/

@Jack5079
Copy link
Member Author

Alternatively Qwik, but data loading is weirder there as well as everything else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant