Having separate data and code never causes problems either? Just because you bundle them together, doesn't mean the data and code are together during development. They get bundled together in the build process.
It's not as bad as say, writing HTML in JavaScript (JSX).