New course: AI Tools for Designers ๐ŸŽจโœจ

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 ๐Ÿงฐ

Create AR Effects for TikTok with Effect Houseโ€”very beginner-friendly! ๐Ÿ“น

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
  • Jiten Mehta
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jiten Mehta
    Front End Web Development Techdegree Graduate 21,209 Points

    using forEach instead of Reduce

    Posted December 16, 2021 8:48am by Jiten Mehta
    .a{fill-rule:evenodd;}techdegree seal-36
    Jiten Mehta
    Front End Web Development Techdegree Graduate 21,209 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Building the Statistics Component

    1 Answer

  • John Moran
    John Moran
    7,950 Points

    remove lines after clicking on buttons

    Posted May 20, 2019 12:28pm by John Moran
    John Moran
    7,950 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Building the Statistics Component

    1 Answer

  • Jeremy Ashcraft
    Jeremy Ashcraft
    14,786 Points

    How do the totalPoints keep updated using Guil's solution?

    Posted May 7, 2019 2:19am by Jeremy Ashcraft
    Jeremy Ashcraft
    14,786 Points
    • JavaScript
    • React Components (2018)
    • Managing State and Data Flow
    • Building the Statistics Component

    1 Answer

  • Friedrich Coen
    Friedrich Coen
    2,648 Points

    Callback function

    Posted January 22, 2019 2:12pm by Friedrich Coen
    Friedrich Coen
    2,648 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Building the Statistics Component

    1 Answer

  • jaredabbadusky
    jaredabbadusky
    6,374 Points

    Why not just add a totalScore property to the state object?

    Posted October 25, 2018 3:45pm by jaredabbadusky
    jaredabbadusky
    6,374 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Building the Statistics Component

    1 Answer

  • zeljko mikacic
    zeljko mikacic
    11,993 Points

    why do we need to change totalPlayers prop in Header from this.state.players.length to this.state.players?

    Posted October 24, 2018 12:58pm by zeljko mikacic
    zeljko mikacic
    11,993 Points
    • JavaScript
    • React Components
    • Managing State and Data Flow
    • Building the Statistics Component

    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.