Tag: javascript
-
How I resolved a reload issue with gulp and browserSync
The gulp build for my small express app– now with react integrated for some components on the frontend– was running into a strange issue when making edits. I had set up the gulp process such that it reloaded at the end of a file watch, once that watch was triggered: As the code indicates, the…
-
How to use props to pass custom classes to react components
It is sometimes important to be able to pass custom class names to different instances of react components. React allows for this via an array prop passed to the component: nav.jsx: The prop of customClass is assigned an empty array, and then using interpolation the Array method of .join is called on it. In my…
-
How to avoid or resolve conflicts between nodemon and browserSync reloads
When implementing node into my existing node app, I ran into an issue where jsx compilation reloads were hanging in the browser. This was specific to jsx only. I had a separate sass built that was reloading just fine. What I found was that there was a clash between my nodemon server reload and the…