I am currently building a project for fun , but I am only experienced in Java/Python/C/C++ and languages like that, not front end. I have been looking at other React Native projects and I just want to understand what is going on here.
const [username, setUsername] = useState([]);
const joinResponse = await meteredMeeting.join({
name: username,
roomURL: METERED_DOMAIN + "/" + roomName,
})
setUsername(username)
I am confused about what kind of array is created with
const [username, setUsername] = useState([]);
and how a set function is called. What is going on here ?