Pain at the front and outside of the shin is incredibly common, especially for individuals who have started a new sport, such as running or basketball, at too high an intensity. The muscles at the front and the outside of the lower leg can get inflamed and sore, often irritating the common peroneal nerve that runs through these muscles. Foam rolling can help loosen tight muscles and improve circulation helping muscular repair.
These muscles can also become tight if there is an imbalance between the larger calf muscles and small shin muscles - so make sure to roll both.
If there is localised swelling or the pain is very severe it would be wise to get it assessed by a professional to rule out compartment syndrome or a stress fracture which can present very similarly to shin splints but often need a different treatment plan.