With the new GUI system, how to disable/enable GUI components through code correctly?

I’ve been trying to find an answer to this question. Just activating/deactivating the GameObject seems buggy with the GUI, so I would not recommend that. Anyone have a better idea?

The CanvasRenderer on the GUI components does not have any enable/activate methods/variables.

public Canvas canvas;

void Start ()
    canvas.enabled = !canvas.enabled;