I’m new to React.js, I’m programming my first practice app, and i found this error in a form: export default function PanelAdd(props) { const [getTitle, setTitle] = useState(”); const […
Tag: reactjs
I want to clear setTimeOut() when button clicked, but screen keep log me in directly even when i add clearTimeOut, here is function i use function LoginScreen({ navigation, props }) { const …
I’ve created a grid with boxes in it that each has an id of box + i. However when i try to add an on click function to change the colour of the box it doesn’t allow me to. Here is the code: function …
Codesandbox : https://codesandbox.io/s/vigilant-elgamal-dciqs When I input an image and try to display its preview on the same container, only the image in the first container updates i.e setImage …
I use a component where I use the following code to update the ‘active’ flag value. I have a problem with updating the Button when the ‘active’ flag changes its value. At the moment, when ‘active’ is …
I am running a React Native app. I have a SearchBar that highlights the text in the search results. Code: Highlight(fullText, searchTerm){ //Highlight function if (!searchTerm.trim()) { …
I trying to render data inside rect native view using map function and inside map function there is ternary operator and inside ternary operator there is filter funtion, so the logic is like this: …
I am using context api for state management I have set an initial state for students: null and tags: [] students is an array of objects with data like this: [ { “id”: 1, “city”: &…
I am building a very simple counter app, where there are increment and decrement buttons. The count value is getting displayed according to the button clicks. The one thing which is different here is, …
I want to screen record my users usage that will be embeded in my react code, this is private company website. MediaStream Recording of mozila is “asking” for premission to get record. there …