UNPKG
eslint-config-mts
Version:
latest (0.0.2)
0.0.2
0.0.1
MLT ESLint 规则
test.hulu.team/eslint/config/alloy
eslint-config-mts
/
test
/
react
/
no-string-refs
/
good.js
10 lines
(8 loc)
•
167 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ useRef, useEffect }
from
'react'
;
function
Foo
(
) {
const
foo =
useRef
(
null
);
useEffect
(
() =>
{
console
.
log
(foo); });
return
<
div
ref
=
{foo}
/>
; }