What's "thanks to" mean? And when can it be used? Is it like "due to?"

Native speaker’s answer
Rebecca
Yes, that's right! It is like "due to". It means as a result of something or someone. It could be used in a few ways. It can sort of be a way to express gratitude for the reason of something, like if it caused a good effect. Or it can be used sarcastically as if saying, "Thanks for nothing". Ex: Well, thanks to the rain we can't go on our trip anymore. => sarcastic Ex: We were able to get the funding thanks to John.