The 43-year-old singer, who is now dating dancer Casper Smart, said, 16 months ago, when she split from the father of her twins after seven years of marriage, she wasn't sure she'd ever feel like herself again, reported Hollywood Life.
"I was going through a divorce and the breakup of a family, which was devastating to me because family means everything to me," Lopez said.
"I didn't want to be the woman who stayed in bed for months. I did do that a little, but I knew I had to get through it," she added.
Lopez wanted to not only survive the break up but also to emerge as a better person, and focusing on her career helped.
"I had to figure out what I did wrong that I was in a relationship where I was accepting situations that weren't good for me. If you're allowing yourself to be in a bad relationship, you need to understand why.
"I had to turn [the breakup] into something better. I thought, 'I don't want to just survive it, I want to come out better," she said.
To that end, the superstar focused all of her personal energy on taking care of her four-year-old kids, Max and Emme, and threw everything else into her career.