Parses data to Component using the given function.
The parsing function
The date given to func
func
The parsed Component