Difference between electronic component and passive component
Actually your classification is not common. In the webshops that sell components the transistors and the resistors bot are electronic components to keep them separate from parts for other areas, for ex. nuts and bolts or glues and paints.

The separation between active and passive electronic components is widely used due their very different nature. Transistors and ICs are active due their ability to make one signal to control another without moving parts.

But the question: The electronics is a subfield in the general electric theory and practice. The resistors have applications in most of the subfields of that. Even some very old AC motors urgently needed resistors for proper starting.  But diodes are mostly used in the area that is called "the electronics". That area is based on components that have a design based on electron physics. Diode is one of them.

Resistors can as well be called electric or electronic parts because they are massively needed in the electronics as well as in other areas of electrics.