You are thinking of the sensor in smartphones, in this case it is a spinning disc that uses gyroscopic torque to rotate the spacecraft.
[0] https://science.nasa.gov/mission/hubble/observatory/design/h...
Edit: Apparently, for smartphones, all these sensors are integrated into a single MEMS chip, one sensor for each degree of freedom, three accelerometers and three gyroscopes: https://youtube.com/watch?v=9X4frIQo7x0
I think the confusion is a result of imprecise language talking about how they are used to slew the telescope. They are "used" but as feedback, in conjunction with other systems. Also, there have some prominent reaction wheels failures on other missions, and that contributes to the confusion.