A hub is a networking device that connects multiple devices together but can only handle data transmission to one device at a time. It broadcasts all incoming data to all ports, which can cause collisions and reduce network performance. Switches have become more common because they are able to transmit data to multiple devices simultaneously without collisions by keeping track of what devices are connected to each port.