I recently stumbled over this question in an interview. I can't seem to find too much about it online.
Q: How is the index.js file attached to the HTML file in React?
I have to be honest, I'm not clear on this. Here is the head of the index.html file of a standard create-react-app. I don't see any links for JS or CSS:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<title>My App</title>
</head>
I just want to make sure I understand how everything is working under the hood. Apologies for the semi-basic question.