![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
carousel-lit
Advanced tools
Lit carousel component written in React.
npm install carousel-lit OR yarn add carousel-lit
import React from 'react';
import ReactDOM from 'react-dom';
import { Carousel, Track, Previous, Next } from 'carousel-lit';
const items = [
{ id: 'id-0', color: 'aliceblue' },
{ id: 'id-1', color: 'antiquewhite' },
{ id: 'id-2', color: 'aqua' },
];
const itemStyle = {
flex: '0 0 200px',
width: '200px',
height: '150px',
};
const App = () => {
return (
<Carousel>
{/*
Pass your items to the <CarouselTrack> component and leverage the
render prop api to render your custom carousel item.
*/}
<Track data={items}>
{({ entry, index, first, last }) => (
<div
key={`${entry.id}-${index}`}
style={{
...itemStyle,
backgroundColor: entry.color,
margin: `${last ? '0' : '0 0.25rem 0 0'}`,
}}
>
I am {entry.color}
</div>
)}
</Track>
{/*
Render previous and next buttons wherever you like as long as they
are a decendent of <Carousel>
*/}
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<Previous>{'←'}</Previous>
<Next>{'→'}</Next>
</div>
</Carousel>
);
};
ReactDOM.render(<App />, document.getElementById('root'));
Have a look inside the example/
directory to learn more about possible usage
patterns.
Note: This component requires and includes both
resize-observer-polyfill
andsmoothscroll-polyfill
.
Under construction
Clone this repository and install it's dependencies
# Using npm
npm install
# Using yarn
yarn install
Validate project setup
# Using npm
npm run validate
# Using yarn
yarn validate
Navigate into the example/
folder to start your local development
environment.
cd ./example
# Using npm
npm install && npm start
# Using yarn
yarn install && yarn start
This will start a simple React application powered by Parcel on http://localhost:1234
.
This project was bootstrapped with jvdx.
FAQs
Lit carousel component written in React
We found that carousel-lit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.