How to execute possibly async JS code passed in by string
January 21, 2023We have all been there. Eval is evil "BUT" here is this HTML element prop and you need to call this like it is. OK, sure, it worked until now. But it was a good old sync JS function. Now there might be an async function and we need to await it. Now what?