Quote:Are both sentences correct?
No. Only the first one.
"Just now" means "at this present time" so you need to use the present tense, so "She was wearing the raincoat" is wrong.
Incidentally, this is better, especially if she is wearing the raincoat now, in the present, because the rain occurred in the very recent past:
She is wearing the raincoat just now because it
has been raining.
Also, what job are the words "just now" doing in the sentence? They are slangy and conversational and belong to spoken, not written English.
Also, again, unless you have previously been talking about that specific raincoat for some reason, you might say:
She is wearing
a raincoat because it
has been raining.