Skip to content

String tag name as view #60

@Kelin2025

Description

@Kelin2025

Suppose we use pure elements instead of components for forms. We have to do

const SearchInput = reflect({
  view: (props: InputHTMLAttributes<HTMLInputElement>) => <input {...props} />,
  bind: { /* ... */ }
})

Could be just:

const SearchInput = reflect({
  view: "input",
  bind: { /* ... */ }
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions