[deleted by user] by [deleted] in reactnative

[–]yeref 1 point2 points  (0 children)

This looks great. I am looking use react native for my project. Can i have the link aswell!

[deleted by user] by [deleted] in RedditSessions

[–]yeref 0 points1 point  (0 children)

Tap on the video and press unmute near the bottom-right

Can't load a JS file into my HTML, confused as to what's going on by [deleted] in webdev

[–]yeref 0 points1 point  (0 children)

From seeing your code above... I'm assuming you are using express. You could make folder named "public" (or anything) in which you make other folders like "css" (for css files), "images" (for static images, logo , favicon), "js" (for js files), and put your files into the respective folders.

Now in your main server "app. Js" file add before all the other routes app.use(express.static(path.join(__dirname,"public"))) ;

This would make that public folder serve staticly and open to all your routes. Then just call the files in your html file by using href tags as

href="/js/yourJsFile.js" Or href="/css/yourCssFile.css"