Under Cal. Bus. & Prof. Code § 7031, a contractor must be licensed at the time work is performed under a construction contract in order to sue to collect compensation for that work.

NEC, JCT & PPC Forms of Construction Contract - An Advanced Guide - Learn Live
MBL Seminars | 3 CPD hoursBack-To-Back Contracts in Construction - Obligations & Liabilities - Learn Live
MBL Seminars | 1.5 CPD hoursHow to Implement ESG Goals in Construction Contracts - Learn Live
MBL Seminars | 1.5 CPD hours