The difference between a function component and a class component to trigger children form changes in Ant design