OTOH you now need an API and glue code in the frontend. I'm not saying it's not worth it but it's definitely more work.