There are two main types of driveshafts used in RC racing cars - constant-velocity drive (CVD or CVA), and universal joints. Which driveshaft will work better for you will depend on the driving conditions. The main difference between the two is that universals have less friction.
Also common in entry-level cars are dogbones which are not directly bound to the drivetrain. They are trapped between cups on the inside and outside and can come out in severe crashes, but they are simple to use and maintain and cheap to replace.

Universal joints
- More forgiving handling
- In front: more responsive steering
- In rear: handles bumps more smoothly
- Ideal for low grip, bumpy, technical tracks

CVDs/CVAs
- More responsive handling
- In rear: more stable in acceleration
- Ideal for high grip, smooth, open tracks
- Require more maintenance

Double-cardan joint (DCJ)
- A double-jointed axle that reduces vibration and noise at steep angles. Often used in the front of on-road cars.
For a great overview with a focus on off-road applications, check out Max Mört's explainer.