Validation Errors in Login Page using Reactjs [closed]
Closed last month.
React’s context and input field duplicating string characters
import React, { createContext, useContext, useState } from “react”; export const ProductSearchTermContext = createContext([“”, undefined]); function ProductSearchTermContextProvider() { const [searchTerm, setSearchTerm] = useState(“”); function SetSearchTerm(term: string) { setSearchTerm((oldState) => oldState + term); } return ( <ProductSearchTermContext.Provider value={[searchTerm, SetSearchTerm]}> {children} </ProductSearchTermContext.Provider> ); } export default function Input() { const [searchTerm, setSearchTerm] = useContext(ProductSearchTermContext); const onChange = […]
What parts of a react functional component are visible to the client?
Is everything in the following visible / manipulatable by the client – or is just the jsx after the return statement?
Why is my initial state which is a separate object being changed as well as state in react?
I have this as state in my component const [state, setState] = useState<IEmployee>(employeesInitialState)
I am trying to display the names added in the list
The problem is that the useEffect runs twice, but the Strict Mode is off, can you please help with that?
react-date-range plugin arrow keys not working [closed]
Closed yesterday.
React.useEffect is keep executing
React.useEffect is keep executing for every button click. Not sure why ? Someone can help ?
React.useEffect is keep executing
React.useEffect is keep executing for every button click. Not sure why ? Someone can help ?
The setItem runs every time after refresh
In the useState hook the setItems runs every time when the page is refreshed and sets the same items again. Can t=you help me with this, please.
sharing a link via email and whatsapp
below is the function that I created to copy a link, send it via whatsapp and send it via email but it’s showing just simple text on the email and whatsapp what am I missing here?