# next.js

* react introduced by facebook
    

* react framework - next.js
    

### **main benefits**

* simplifies development process
    

| features | next.js | react.js |
| --- | --- | --- |
| rendering | choice of server/client side. on the server before sending it to client’s device. immediate display to user. solves issue of SEO | client side rendering. rendering on the browser |
| routing | each folder in ‘app’ directory is the routing path | creating different page routes in react (install react-router-dom) |
| creating full stack application | just by creating route.js file - corresponds to route API endpoint |  |
| automatic code splitting | breaking code into smaller chunks to be loaded **as needed** | manual code splitting |
