How does one go about dynamically rendering a stateful component that takes in props that can change after render? I have tried storing components in state and then mapping