local storage initialization done via different phtml file and not done via react-script.phtml file because, this is something we dont need to duplicate in example template module where react-script.phtml file does exists and it will be more difficult to manage it in the future.
Using different phtml files in the case of luma theme as the private-content-loaded event is not present there and hence, I suspect this will break react checkout in the case of the luma theme.
react-script.phtml
file because, this is something we dont need to duplicate in example template module wherereact-script.phtml
file does exists and it will be more difficult to manage it in the future.private-content-loaded
event is not present there and hence, I suspect this will break react checkout in the case of the luma theme.