“TIPO TIPO DO TIPO PAR” Respostas de código

Tipo de tipyScript do setState

//Change string for the desired type
React.Dispatch<React.SetStateAction<string>>
Exuberant Eland

TIPO TIPO DO TIPO PAR

//just define function with below
setValue : React.Dispatch<React.SetStateAction<string>>
  //example for boolean
  const ListsComponents: React.FC<{ setOpen?: React.Dispatch<React.SetStateAction<boolean>> }> = ({ setOpen }) => {
  const [currentSection, setCurrentSection] = useState<'home' | 'mint' | 'myNft' | 'roadmap'>('home');
  return (
    <div> Just demo<div/>
    )
Shirshak kandel

Respostas semelhantes a “TIPO TIPO DO TIPO PAR”

Perguntas semelhantes a “TIPO TIPO DO TIPO PAR”

Mais respostas relacionadas para “TIPO TIPO DO TIPO PAR” em TypeScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código