Hello, Pastel
"I won't do the homework like the way he did."
This sentence can be improved. Actually, it is not completely correct. You could say, for example:
"I won't do my homework like he did (his)."
"I won't do my homework in the same way he did (his).
You said:
==>'did' is not used as...