背景
- 从 2周一次的 lightning talk学到的小技巧
- 通过ref定位到光标所在位置
代码
const inputRef = React.useRef<any>(null);
const position = inputRef.current.resizableTextArea.textArea.selectionStart;
小结
小黄姐牛逼到爆炸了
Jest Tips 'test promises'
Jest Tips 'test responsive'