Upvote:1
Buddhism teaches what is commonly called the human life form is comprised of five aggregates (SN 22.48; SN 22.22), namely, body, feelings (of pleasantness, unpleasantness & in-between), perceptions, mental formations (such as emotions & thinking) and consciousness via the six senses.
Buddhism teaches what is commonly called "the self" is merely a product of thinking and conditioning (SN 22.81) and is not ultimately real and is merely the manifesting of suffering (SN 5.10). Therefore, Buddhism teaches the five aggregates are "not-self" ("anatta"; SN 22.59).
Buddhism says anatta (not-self) is only the true nature of things but is also the understanding that leads to the ending of suffering because, according to the 1st Noble Truth (SN 56.11) all suffering is caused by the mind possessively clinging/attaching to things (the five aggregates; SN 56.11), both internally & externally, as "I", "me", "mine" and "self" (SN 22.1).
The sole purpose of the Buddhist teachings is to mitigate and end suffering (MN 22 paragraph 56). Here, it is taught nothing whatsoever should be attached to (as "I" & "mine"; MN 37).
In Hinduism, when it is taught "everything is an illusion", the purpose of this teaching is also to end suffering and made the mind feel more free & unattached.
In summary, Buddhism believes if you can live according to the Noble Eightfold Path you can live a life that is free from suffering.