(props any)
| 322 | } |
| 323 | |
| 324 | func structToProps(props any) map[string]any { |
| 325 | m, err := util.StructToMap(props) |
| 326 | if err != nil { |
| 327 | return nil |
| 328 | } |
| 329 | return m |
| 330 | } |
| 331 | |
| 332 | func DefineComponentEx[P any](client *ClientImpl, name string, renderFn func(props P) any) vdom.Component[P] { |
| 333 | if name == "" { |
no test coverage detected