Tag: react
-
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…