Non competes prevent an employer to forbid you to work for competitor after you leave (or they fire you). Non competes are non enforceable in CA.
IP assignments (i.e. "what you do belong to us") is very much enforceable and very common.
How it's enforced depends on the company, but by default the employer can claim ownership if you do your work on their time or using their resources (e.g. on a company's laptop).
And they can drag you through courts even if it's all your time and your resources.
If you work for Apple, you better not do any non-Apple work. At Google you can do open source work but you have to get a permission.
So as far as IP assignment, CA is no different than TX.