Skip to content

Tag: reactjs

Compare two Arrays and Insert Null Vallues

I have two arrays: And I would like for array2 to be changed to The question is how can I compare the two arrays and look at their time and then insert null in the missing locations for each array. Any help is appreciated! Answer Your example is a little misleading. Your description of the prompt says entries…

Django project not rendering React.js

In my project, I am trying to tie together Django and React. index.html index.js settings.py Project Hierarchy I have looked at this post, and confirmed that this solution is not applicable for me. The primary issue, I think, is that Django is serving the html, but not running the .js, so I’m unsure of …

React email address format validation

I’m building a portal where students from only 6 universities can participate so I need a way to limit the email address type to these 6 universities for example emails ending with @mit.edu How do I implement this in React with the form validation set to characters and on clicking on of these formats fr…

Local image show not show up in React JS

I’m just learning about React JS and Material UI to create a dynamic web application. I’m using ‘url(${process.env.PUBLIC_URL})’ to connect my local image but for unknown reason the image would not show up. As displayed above, I’m trying to place the water-bottle.jpg image inside…