5 ms·
I think it's important people understand this. The last two points are precisely the reason String refs got moved from Preact's core into preact-compat. Also,
by developit 10y ago
I think it's important people understand this. The last two points are precisely the reason String refs got moved from Preact's core into preact-compat.
Also, for the common-case usage of string refs, you can just use a helper to insert things into `this.refs`:
https://gist.github.com/developit/63e7a81a507c368f7fc0898076f64d8d https://gist.github.com/developit/63e7a81a507c368f7fc0898076...