Raised beds are a lot of work to build and you have to use rot resistant material or they won't last long. I made my first one originally for carrots so the soil would all be sifted and free of rocks that sometimes cause carrots to be misshapen.
The good thing about them is you can custom mix the soil as you fill them with the best mix of sand, peat,and rich, loose, stone-free garden soil, etc to fit what you want to grow. But beware, all that great soil and growing medium is great for weeds. If you can't keep them mulched out be prepared to do a lot of weeding, over and over, since you can't mechanically cultivate. Corn, tomatoes, and similar crops take a great deal of space, so I wouldn't grow them in one, although they will grow great in them.
I have made several more and have had great success growing sweet potatoes, kale, onions, garlic, and carrots. I think spinach would do well in them, but I quit growing it here because i could not keep snails and slugs out of it without spraying insecticides on it every week, which meant I wouldn't eat it.
This year I plan to grow only watermelons in all mine because the raised beds were recently renovated with a lot of river sand. Sandy soil is great for watermelons and I mixed it just for them, as most of my garden space is marginal for watermelon. I can mulch around the plants with weed fabric covered with straw and cover the ground alongside the beds to keep down weeds where the vines will trail. So, no weeding after the plants are established and mulched--just pick the melons when ripe.