A not insignificant amount of SpaceX's funding (especially considering the critical time of that funding) is from NASA. They are also leveraging decades of NASA research in their engine and rocket design.
I'm a huge fan of SpaceX, and think they (and other like them) represent the future, but they have a little ways to go before they are completely financing their own R&D (at the moment they're still spending a lot of public dollars).
I'm a huge fan of SpaceX, and think they (and other like them) represent the future, but they have a little ways to go before they are completely financing their own R&D (at the moment they're still spending a lot of public dollars).