I used to help my brother with his web projects when I was in India, by creating them for him and in return he used to get paid for the same. So can I continue the same while staying in USA and being on H4 visa? Will this too be accounted as work?
As a hobby? Yes. As an employment? No. Keep that in mind.
The information contained in this answer is provided for informational purposes only, and should not be construed as legal advice on any subject matter,not should it be viewed as establishing an attorney client relationship of any kind.