0

I have a child component sitting inside a parent component. Parent component has some information, say I, which keeps changing based on user actions. In child component I have a button, and I want to change state of this button based on current value of I.

What is idiomatic way of doing it in scalajs-react/React?

Mandroid
  • 6,200
  • 12
  • 64
  • 134

1 Answers1

1

Pass it via props and optionally use Reusability to prevent the child components from needlessly re-rendering too often.

Golly
  • 1,319
  • 8
  • 18