Please add a new method name, like useStateRef to be able to use both useState and useStateRef at the same time
h0jeZvgoxFepBQ2C opened this issue · 2 comments
h0jeZvgoxFepBQ2C commented
like the title says, I would like to keep the things seperated?
dominic-heil commented
There is no need for this. When you import useStateRef you can just name it whatever you want. You can use the default React useState and useStateRef simultaneously using the following imports:
import React, {useState} from "react";
import useStateRef from 'react-usestateref'
h0jeZvgoxFepBQ2C commented
Ah I see, great, thanks! ❤️