I compose a bit. It's primarily for myself. I try out things that engage me, excite me, or seem interesting to me in some other way.
I'll sometimes show things to people and be curious about their reaction/feedback, especially when I'm trying to develop a specific composition skill such as counterpoint/fugue. But ultimately my goal is to make something based on my own vision. If other people like it, it's a nice bonus. If other people dislike it, it can sting a bit and then I move on with my life.
But ultimately I compose for my own pleasure so neither things matter or dictate what I write.