A power loss will not fry components, and since you said you don't mind losing whatever you're working on, a UPS probably isn't necessary. A good surge protector will do the trick for power inconsistencies. However, it is a good safeguard and extra safety measure so you don't lose those precious components. You should make sure that the UPS has enough battery capacity to run what you plan to have plugged into it for a reasonable amount of time so they can all have time to shut down correctly, save work, etc. You also just want to make sure it has the "creature comforts" you may want as well, like enough outlets, ethernet, and other things of the sorts. You can watch this video here to learn more about what UPS to buy as well.