Aminadav/react-useStateRef

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

like the title says, I would like to keep the things seperated?

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'

Ah I see, great, thanks! ❤️