Spintronics is a new branch of electronics where for the data processing and storage is used not only the charge of electron but also its spin. In this paper we describe the idea of a spin-based transistor, which was published in 1990, and its two practical realizations that were reported in 2009 and 2010.