1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[ReactJS]

Discussão em 'Mobile' iniciado por Stack, Abril 23, 2021.

  1. Stack

    Stack Membro Participativo

    Galera, boa noite

    eu tô tentando trocar a cor de background do meu botão após o clique em cima dele mais não tô conseguindo

    Eu tenho uma array e o map


    const array = [
    {
    id: "1",
    title: "ifb 01",
    backgroundColor: "blue"
    },
    },
    {
    id: "2",
    title: "Inf 03",
    backgroundColor: "red"
    },


    Porém, não tô conseguindo mudar a cor do background dos botão ao clicar nele.

    Tentei fazer algo tipo

    matéria cursada = background Green | matéria não cursada = background white| matéria ofertada = background blue|

    Continue reading...

Compartilhe esta Página