iari
03/14/2022, 11:58 AMpublic fun <T : kotlin.Any, P : react.PropsWithRef<T>> forwardRef(handler: react.RBuilder.(P, react.Ref<T>?) -> kotlin.Unit): react.ComponentType<P> { /* compiled code */ }
?turansky
03/14/2022, 1:38 PMPropsWithRef<*>
If so - FC
factory method and props.ref
looks like more elegant solutionturansky
03/14/2022, 1:39 PMiari
03/14/2022, 5:07 PMiari
03/14/2022, 7:25 PMIf so -Sorry, Neither am I a react expert nor kotlin-js-react I do not know what this means. From what I understand, it is requited to use reacts forwardRef function - am I wrong? I need is some sort of method/function like the one above with generic parametersfactory method andFC
looks like more elegant solutionprops.ref
T, P
where P : PropsWithRef<T>
that can be used with FC<P>
instead of RBuilder
- right?turansky
03/14/2022, 7:43 PMChildrenBuilder
turansky
03/14/2022, 7:44 PMforwardRef
- check requiredturansky
03/15/2022, 11:18 AMturansky
03/15/2022, 7:48 PMiari
03/16/2022, 10:33 AM