I'm making an app with react native, actually I have the screens with classes :
class registerScreen extends Component {
But now I'll like to use "useEffect" hook but see I cannot with classes so I have to migrate them to functions...something like...
const registerScreen = () => {
which is the correct or best practice method? What about the constructor and componentDidMount(), etc...
In the other hand it's possible to use the "useEffect" hook on a screen made with a class? How?
Thanks