title: How can I affect the state of just one individual component(card) when i have multiple versions of that component?
body: <p>Current situation:
  I have a card component called LockedCard.
  The LockedCard is rendered to the page by being mapped using stored database information. It is on Home.js that these multiple cards exist. 
  So it is rendered to the page as multiple separate versions of itself.
  On Home.js I have the state of locked: true.
  This causes each of the cards to appear locked when rendered, with a clickable lock icon.</p>
  
  <p>Intended Goal:
  I need, when I click the lock icon on the LockedCard, for the program to reveal the security question (separate component called SecurityCard). It should only do this for that single card.</p>
  
  <p>Current Problem: 
  When I click the lock icon it changes every card on the screen to the SecurityCard Component. I need it to change only the one card that I click, not every single card in the program.</p>
  
  <p>This is being made on PC Windows, I'm using normal React, not native.</p>
  
  <p>I have tried to put the state in the child component(LockedCard) and that didn't work so i sent the state "locked: true" back to the parent component(Home.js)</p>
  
  <p>I currently have it reading that the card is locked but when I click the lock icon nothing is happening.
  I have a clickHandler that handles when the lock icon is clicked, and that is a button and has worked in the past when I was able to unlock all the cards(which as a stated before was not the intended goal, but is proof that the clickHandler should work)</p>
  
  <p>Parent(Home.js)</p>
  
  <pre><code>class Home extends Component {
  
    state = {
      title: "",
      note: "",
      modal: [],
      attempts: 3,
      isCorrect: false,
      locked: true,
      answer: '',
      noteTotal: 0,
      modalOpen: false
    };
  
  }
  =============
    handleLockButtonClick = () =&gt; {
      this.setState({
        locked: false
      })
    }
  
  =============
  
   {this.state.locked ? (
              &lt;Grid.Row stackable columns={3}&gt;
              {this.state.modal.map((card) =&gt; {
                return (
                &lt;GridColumn&gt;
                  &lt;LockedCard
                    handleLockButtonClick={this.handleLockButtonClick}
                    title = {card.title}
                    notes = {this.state.noteTotal}
                    locked = {this.state.locked}
                  /&gt;
                &lt;/GridColumn&gt;
                )
              })}
              &lt;/Grid.Row&gt;
            ) : (
                this.state.isCorrect ? (
                  &lt;Grid.Row stackable columns={3}&gt;
                    {this.state.modal.map((card) =&gt; {
                      return (
                        &lt;GridColumn&gt;
                          &lt;PassCard
                            title={card.title}
                            note={card.note}
                          /&gt;
                        &lt;/GridColumn&gt;
                      )
                    })}
                  &lt;/Grid.Row&gt;
                ) : (
                    &lt;Grid.Row stackable columns={3}&gt;
                      {this.state.modal.map((card) =&gt; {
                        return (
                          &lt;GridColumn&gt;
                            &lt;SecurityCard
                              handleAnswerInput={this.handleAnswerInput}
                              title = {card.title}
                              name="answer"
                              value={this.state.answer}
                              handleAnswerSubmit={this.handleAnswerSubmit}
                              question={securityArray[0].question}
                              attempts = {this.state.attempts}
                            /&gt;
                          &lt;/GridColumn&gt;
                        )
                      })}
                    &lt;/Grid.Row&gt;
                    )
                )}
          &lt;/Grid&gt;
  </code></pre>
  
  <p>Child(LockedCard)</p>
  
  <pre><code>class LockCard extends Component {
      render() {
          return (
              &lt;Card centered locked={this.props.locked}&gt;
                  &lt;Card.Content header={this.props.title} /&gt;
                  &lt;Card.Content className="card-center" description="Click the lock to answer a question and unlock this cards information" /&gt;
                  &lt;button id="lock-btn" className="ui primary button lock-button" onClick={() =&gt; this.props.handleLockButtonClick}&gt;&lt;i className="fas fa-lock"&gt;&lt;/i&gt;&lt;/button&gt;
                  &lt;Card.Content className="dark" extra&gt;
                      &lt;Icon name='clipboard' /&gt;
                      {this.props.notes} Notes
              &lt;/Card.Content&gt;
              &lt;/Card&gt;
          )
      }
  }
  export default LockCard;
  </code></pre>
  
  <p>Expected:
  When changing the state of locked to false it only happens on the specific card being clicked on</p>
  
  <p>Actual Results: All the cards change</p>