What specific purpose does a front-end library like React serve?

I’m curious about the advantages provided by modern front-end libraries such as React. Do they mainly simplify development by offering helper methods instead of manually handling HTML, CSS, and JavaScript integration?

hey, react helps u break your ui into reusable cumpnents and updates with a virutal dom which reduces manual dom tinkering. makes things less messy overall