How can variables be properly passed between function components? When the example variable in Component1 is set, Component1 redirects successfully
Component1