Luka Doncic sunk a buzzer-beating three-pointer for the Dallas Mavericks against the Memphis Grizzlies and declared: "Those are the best feelings ever."

The Slovenian took centre stage in Memphis as he posted 29 points, sealing a 114-113 victory with just 1.8 seconds left on the clock to earn the nickname 'Houdini' from his coach Rick Carlisle.

Grayson Allen had only just missed two free throws for the Grizzlies, making the triumph even sweeter for the Mavs.

"I was really surprised when it went in," said Doncic, whose exploits earned praise on Twitter from LeBron James. "Those are the best feelings ever.

"Sometimes you're going to make it, but sometimes you're going to miss it, too.

"You've got to take that, too. I think that's the most important part. If my team trusts me in that moment, I'll keep working on it."

Coach Carlisle compared the Mavs' talisman to the legendary Harry Houdini, conceding his team had pulled off a miraculous escape.

"In those situations, you pull off a win in a game like that once in a blue moon," he said.

"It just doesn't happen very often. Luka made one of the signature, special shots that you're going to see for a long time.

"This is one of those joyous nights where we escaped. We had Houdini. He got us out of here alive.

"He's just a very, very special and unique guy when it comes to these kinds of things. He sees angles and possibilities and has a belief system that very few of us can fathom. Pretty amazing stuff."

The Mavs are now 30-24, sitting seventh in the Western Conference.