Amy Blankenship
Jun 11, 2022

--

This means that you can only ever use that component within that specific context, limiting you to only ever having one table on the screen at once (there's a hard link to that one instance of Context). Unless, of course, you pass the context through a property. In which case, just pass an object with the things the component needs through the properties. Passing things through properties is nothing to be afraid of :)

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

Responses (2)