You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used vercel-starter-kit and it worked as expected. Print some HTML text. But as I tried to add some Button and TextField it's not showing up in the rendered HTML page.
import Vercel
import VercelUI
structApp:ExpressHandler{staticfunc configure(router:Router)asyncthrows{
router
.get("/",IndexPage())}}structIndexPage:View{@Environment(\.request)varreq@Statevarname:String=""varbody:someView{VStack{TextField("Enter your name", text: $name)Button("Click Me!", action:{print("clicked")})Text("Hello, Swift").font(.title)Text("This is a server rendered SwiftUI website").font(.subheadline)Text("Your ip address \(req.clientIPAddress)")}}}
The output is just text without input field or button
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I used vercel-starter-kit and it worked as expected. Print some HTML text. But as I tried to add some
Button
andTextField
it's not showing up in the rendered HTML page.The output is just text without
input
field orbutton
What am I doing wrong?
The text was updated successfully, but these errors were encountered: