SSR migrated to Rust
This commit is contained in:
7
cores/mizan-rust-ssr/tests/fixture/Hello.js
Normal file
7
cores/mizan-rust-ssr/tests/fixture/Hello.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createElement } from "react"
|
||||
|
||||
// A trivial component: props in, element out. The keystone only needs to prove
|
||||
// a real React tree renders to HTML inside a bare JS context.
|
||||
export function Hello({ name }) {
|
||||
return createElement("div", { id: "greeting" }, `Hello, ${name}!`)
|
||||
}
|
||||
Reference in New Issue
Block a user