A housing for electronic components and to a
brake device having such a housing. The housing is characterized here by a high level of
electromagnetic compatibility. The housing includes a cover and a base, wherein the cover and the base form a cavity for receiving and holding at least one
electronic component, preferably a circuit board, including: a housing part as part of a wall of the housing, and an
electronic component, which is held within the cavity. The housing part includes at least one first contact surface. The
electronic component includes a second contact surface with
electrical contacts. In the mounted position, the first contact surface and the second contact surface are arranged in a mutually corresponding or opposite manner, and the air gap between the first contact surface and the second contact surface is preferably 2 mm or less.