I want to use a NAS for the time machine.
Then use one that clearly, visibly, and explicitly supports Time Machine, and whose manufacturer actively provides support for it, because Apple won't.
I could buy an Aiport Extreme and use that.
Yes you could, and it will work, provided it is the most recent model. Those would be the 802.11ac "tall" AirPort Extreme Base Stations and Time Capsules.
However, even they are "old" at this point. If you can find one that's inexpensive, buy it with the knowledge that if it fails it won't owe you anything.
Can I use a RAID Drive and how to put it on my network?
A RAID is not a NAS device though...
Suffice it to say that if you are going to use Time Machine, then you must use a device with documented support. BobTheFisherman provided the link.