This explains why so much R&D happens in CA. Because it's too expensive to do it in this state...
The reason R&D happens in CA is because any company that wants to sell to CA is already going to be subject to CA taxation anyway, however they try to apportion their state income. If you develop R&D in another state and use that to sell to CA, you've just added an additional state to your tax compliance burden. Moreover, if you generate the R&D in say, Nevada, but the overwhelming majority of your income is CA sales, CA can (edit: changed from will) simply disregard your chosen allocation as fraudulent.
I did the R&D tax credit this last year and it seems to me the savings for offshoring would drastically make up for the loss in R&D tax credits in most cases.
This was true...before GILTI and BEAT were passed in the TCJA in 2017. It's no longer true. And as a downside, you must also contend with transfer pricing requiring your offshored entity to show a profit, and thus pay foreign taxes which likely would not be recoverable in the US under the GILTI regime.