Is "how to do it" grammatically correct?

If it is, then what is the verb?


How used with an infinitive means in what way or manner, by what means.

He showed me how to adjust the focus.
He did not know how he ought to behave.
How does it work?
—The New Oxford American Dictionary

He showed me how to do it.