diff --git a/src/util.ts b/src/util.ts index c11039b7..5084d5fc 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,3 +1,5 @@ +import React from 'react'; + /** * We trade Map as deps which may change with same value but different ref object. * We should make it as hash for deps @@ -18,6 +20,6 @@ export function stringify(obj: Record { it('key contains double quote should not crash', () => { render() + }); + + it('key could be number', () => { + render() }) });