const myComponent({prop1, prop2,...}) => {
const [state, setState] = useState(....);
}
If I want to immediately update my local state based on the props, where should I do this?
Is there a special event or I can do it right after the useState line in my code?