As a Frenchie matures, so does the ability to hold their business until they are let outside. I highly recommend crate training your puppy. This forces them to hold their business until they are let outside.
Here is a great link on how to crate train a puppy from the American Kennel Club.
https://www.akc.org/expert-advice/training/puppy-training/how-to-crate-train-a-puppy/