{"library":"react-middleware","title":"react-middleware","description":"Connect middleware for serving React components from a standard folder structure (v2.2.4). Allows building React-based sites with a convention-over-configuration approach, automatically compiling assets via webpack. Includes automatic CSS handling from adjacent .styl/.css files, support for custom webpack loaders, and integration with Express. Last updated in 2016, with low release cadence. Differentiates by enforcing a specific folder structure and providing server-side compilation, but is outdated compared to modern frameworks like Next.js.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install react-middleware"],"cli":null},"imports":["import ReactMiddleware from 'react-middleware'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import ReactMiddleware from 'react-middleware';\nimport express from 'express';\n\nconst app = express();\nconst site = ReactMiddleware({ base: './example/site' });\nsite.build()\n  .then(() => {\n    app\n      .use(site)\n      .listen(3030, () => {\n        console.log('Listening on port', 3030);\n      });\n  });","lang":"javascript","description":"Basic server setup using ReactMiddleware with Express, including build step and listening on port 3030.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}