UseTermRef returns a TermRef that can be passed as a ref to "wave:term" elements and also implements io.Writer for writing directly to the terminal.
()
| 59 | // UseTermRef returns a TermRef that can be passed as a ref to "wave:term" elements |
| 60 | // and also implements io.Writer for writing directly to the terminal. |
| 61 | func UseTermRef() *TermRef { |
| 62 | ref := UseVDomRef() |
| 63 | return &TermRef{VDomRef: ref} |
| 64 | } |
| 65 | |
| 66 | // UseRef is the tsunami analog to React's useRef hook. |
| 67 | // It provides a mutable ref object that persists across re-renders. |
nothing calls this directly
no test coverage detected