CDN, npm module or real files?

Which is the preferred method of loading a dependency in a react app?

What are the differences?

Thanks.

for development mode, i simply rely on npm modules.