Is it possible for a toggle inside of one component, to set a "global" variable that another component reads from? I have a toggle that shows a different variant for pricing, but I want that same toggle to also change the variant of the comparison table component as well, which is separate.
Is this possible?
Is it possible for a toggle inside of one component, to set a "global" variable that another component reads from? I have a toggle that shows a different variant for pricing, but I want that same toggle to also change the variant of the comparison table component as well, which is separate.
Is this possible?