Jump into our new React Basics course 😎

Learn about our new Community Discord server here and join us on Discord here!

Probe The AI Multiverse: Exploring the Subfields of Artificial Intelligence 😮

Get job-ready with our Career Toolbox Track's career advice, resume tips, and more 🧰

New course: AI Tools for Designers 🎨✨

Students: got a cool project or resource to share? Submit it to Treehouse Links! 🤩

Learn about our new Community Discord server here and join us on Discord here!

🤖 Check out all our AI content here 👀

  • Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • AI
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
  • Francisco Paglia
    Francisco Paglia
    773 Points

    Shouldn't handleAddPlayer use a function to pass the prev. state value to the spread operator?

    Posted November 5, 2021 9:15pm by Francisco Paglia
    Francisco Paglia
    773 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    0 Answers

  • James Crosslin
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    James Crosslin
    Full Stack JavaScript Techdegree Graduate 16,881 Points

    If you chose to try this course with React hooks, it can start to get tricky here. My solution if you're struggling

    Posted March 20, 2021 3:41am by James Crosslin
    .a{fill-rule:evenodd;}techdegree seal-36
    James Crosslin
    Full Stack JavaScript Techdegree Graduate 16,881 Points
    • JavaScript
    • React Components (2018)
    • Managing State and Data Flow
    • Adding Items to State

    0 Answers

  • Tyler Garner
    Tyler Garner
    1,623 Points

    State Value of AddPlayerForm not updating on text input

    Posted March 10, 2021 7:17pm by Tyler Garner
    Tyler Garner
    1,623 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    3 Answers

  • erkany
    erkany
    7,189 Points

    How name argument passing through App.js from AddPlayerForm class?

    Posted July 11, 2020 11:27pm by erkany
    erkany
    7,189 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    1 Answer

  • Joseph Michelini
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Joseph Michelini
    Python Development Techdegree Graduate 18,692 Points

    What are the syntax rules for adding component properties in React?

    Posted June 22, 2020 12:17pm by Joseph Michelini
    .a{fill-rule:evenodd;}techdegree seal-36
    Joseph Michelini
    Python Development Techdegree Graduate 18,692 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    1 Answer

  • Tetsuya Yokoyama
    Tetsuya Yokoyama
    11,286 Points

    e.preventDefault(); is not working.......

    Posted May 31, 2020 7:09am by Tetsuya Yokoyama
    Tetsuya Yokoyama
    11,286 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    1 Answer

  • Umidjon Khaitov
    Umidjon Khaitov
    8,884 Points

    Text field is not getting cleared up after Submit event

    Posted January 25, 2020 9:38pm by Umidjon Khaitov
    Umidjon Khaitov
    8,884 Points
    • JavaScript
    • React Components (2018)
    • Managing State and Data Flow
    • Adding Items to State

    1 Answer

  • miguel soriano
    miguel soriano
    2,177 Points

    my code is not working, can you let me know where I am wrong?

    Posted July 23, 2019 12:12am by miguel soriano
    miguel soriano
    2,177 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    1 Answer

  • Everton Carneiro
    Everton Carneiro
    15,994 Points

    Every player must have a unique id or the ids must follow the number of players in the array?

    Posted May 24, 2019 3:32pm by Everton Carneiro
    Everton Carneiro
    15,994 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    3 Answers

  • Richard Primas
    Richard Primas
    415 Points

    For some reason I'm receiving an error that states: 'this.state.players.map' is not a function. Any ideas?

    Posted May 11, 2019 8:23am by Richard Primas
    Richard Primas
    415 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    1 Answer

  • Juan Mendiola
    Juan Mendiola
    20,751 Points

    Confused with the handleAddPlayer method

    Posted May 9, 2019 2:48pm by Juan Mendiola
    Juan Mendiola
    20,751 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    2 Answers

  • Yoan Herrera
    Yoan Herrera
    21,137 Points

    is there a reason why we don't use preState inside the AddPlayerForm but we use it everywhere else in the app??

    Posted December 11, 2018 11:26pm by Yoan Herrera
    Yoan Herrera
    21,137 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    1 Answer

  • Saud Tauqeer
    PLUS
    Saud Tauqeer
    Courses Plus Student 8,099 Points

    on 7:25 timestamp.

    Posted October 8, 2018 6:12pm by Saud Tauqeer
    Saud Tauqeer
    Courses Plus Student 8,099 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    1 Answer

  • Saud Tauqeer
    PLUS
    Saud Tauqeer
    Courses Plus Student 8,099 Points

    Great resource for spread operator.

    Posted October 8, 2018 4:42pm by Saud Tauqeer
    Saud Tauqeer
    Courses Plus Student 8,099 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Adding Items to State

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.