When you have a page test.js in /pages, only changes to that file will be hot-reloaded.
If you have a file child.js and load this from test.js, any changes to child.js will not be hot reloaded.
test.js
import React from 'react'
import Child from './child'
export default () => <div>hello <Child /></div>
child.js
import React from 'react'
export default () => <div>world</div>
When you have a page
test.jsin /pages, only changes to that file will be hot-reloaded.If you have a file
child.jsand load this fromtest.js, any changes tochild.jswill not be hot reloaded.test.jschild.js