setRef

fun <T : Any> setRef(ref: Ref<T>?, value: T?)(source)

Original(https://github.com/mui/material-ui/blob/f0f33c6038f874d2f3ecc251a8ca5bc640424992/packages/mui-utils/src/setRef.ts#L16