Get data from Dataset, and insert it into the front-end

I need to get some data from my dataset to my front-end.

I’m currently using:

wixData.query("DatabaseName").find().then( (results) => {
    // For loop to go through the returned object.
})

I understand this is a promise, and I basically I need to wait for this to be completed, my question is:

Whats the workaround to this? Meaning, how is people presenting data to the front-end , manipulating this data when the user interacts with your website (DOM manipulation) etc…?