Can I continue playing basketball with a groin hernia? I was recently diagnosed with one.

Depends. Has high chances of getting incarcerated , ideal way is to get it repaired , is a low risk out patient procedure, and avoid risk.
It depends. If you can run and be athletic without significant discomfort from the hernia, sure you can go ahead and play. An inguinal hernia often causes discomfort, and it can worsen as it enlarges or with vigorous activity, so that might push you toward repair sooner rather than later. The most concerning possible complication would be incarceration of the intestines, prompting repair. Talk to a surgeon.