I am new to reactjs, I am trying to create two components with hooks one which will hold sate and other will be kind of presentational component, which will use to set state.