This repository is a monorepo providing a React component library for swipeable views (carousels/ tabs) with touch and mouse support. It is split into multiple packages: `react-swipeable-views` (browser implementation), `react-swipeable-views-core` (shared utilities), `react-swipeable-views-utils` (higher-order components for auto-play, virtualize, and keyboard binding), and `react-swipeable-views-native` (experimental React Native support). The main component (`SwipeableViews`) uses CSS transitions and transforms to animate slides, with lazy loading and resistance effects. The HOCs provide composable enhancements: `autoPlay` adds timed auto-advance with visibility change handling, `virtualize` renders only a window of slides for large lists, and `bindKeyboard` enables arrow key navigation. The library is well-tested with mocha, chai, and sinon, and has a comprehensive documentation site built with Next.js. However, the codebase is dated (class components, outdated Babel and Next.js versions, no hooks) and maintenance appears stagnant, with many open issues and infrequent updates. The core utility functions are clean, reusable, and demonstrate good software engineering practices.
This is a React library for feature toggle management, providing components and higher-order components to conditionally render UI based on enabled features. The library exposes a `FeatureToggles` provider, a `Feature` consumer component (with render prop or component swapping), a `configureFeature` curried HOC for creating pre-configured feature components, a `withFeatures` HOC to inject the features list, and a `useFeatures` hook for functional components. The code is well-structured, thoroughly tested, and follows a clean context-based architecture. However, the repository is clearly unmaintained: it targets Node 8, uses outdated Babel 6 presets, React 16, and has no dependency updates in years. The technical drift is high, making it risky for new projects without significant modernization. Despite this, the core patterns remain valid and could be extracted or used as a reference for implementing feature toggles in modern React.