You can game on the Switch in various ways, but if you want to charge while playing in Tabletop mode, you'd have to be creative in finding ways to prop it up. Even if you do find a way, you're at risk of ruining its cord, considering its charging port is at the bottom. Nintendo's thankfully fixing that problem by releasing a $20 accessory, which serves as a charger and an adjustable stand.
You can move the kickstand to find the best viewing angle based on your environment, and since its adapter is on the side, you don't have to worry about ruined cords. It sounds like a great addition to your accessory arsenal if you prefer mimicking a TV gaming experience wherever you go -- like say, on the plane, in the car, or in a buddy's house while everyone else is watching Netflix on TV -- by holding only the Joy-Cons instead of the whole console. You'll have to wait a couple more months before you can get one, though: Nintendo won't release its adjustable charging stand until July 13th, 2018.