Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 944 Bytes

REACT-QUESTIONS.md

File metadata and controls

16 lines (9 loc) · 944 Bytes
  • When should I define a routine on a child component vs App.js? Specifically, should I write strike routines to pass down strike handling from App to Field to Queue to Monster? Or should I handle it all in App?

    https://stackoverflow.com/questions/37949981/call-child-method-from-parent

  • How should I store my CSS? Should I break it up into CSS files for each component?

  • What's the right way to handle cases where I need to set state and immediately perform a task afterwards based on that state?

  • Is it normal to have a ton of functions hanging off App.js? Seems bad

  • What's the right way to handle keypresses to navigate through the menu vs move hero?

  • The main menu state vs props seems weird -- managing menuOption vs a boolean in menuOptions?

  • Approach for alert seems odd. Should I make a new alert window and get rid of it once it animates? Right now I'm removing a class once the animation has completed. Seems weird.