You write code for a framework to build apps. You use a library to write code for you to build apps.
That's the major difference between framework and library.
React is a user interface library which helps you creating DOM and handle DOM events, and nothing else.
Think React as jade in node.js, then you'll also need a routing system, HTTP requesting tools, middleware system, a model layer to call it a framework.