DEV Community

snehal
snehal

Posted on

React Rerender - React snap -styling issue after build

i have rerender my react website with react snap to upload on my shared hosting, i was facing issue like html code is showing first then css was loaded for fixing this i have loaded app.css on top at main.tsx, and on index.html i preloaded that css file also and it is correctly working on localhost. but when i creating npm run build and run that dist folderthrough npx serve dist it still showing issue.html is loading first.how to fix that issue?
@j_react_0cea5566edc9e6cdb @reactwebdev @reactwebsolution

Top comments (0)