React middleware for Express