Astro file
---
import Slider from "./ImageComparisonSlider";
const { one, two } = Astro.props;
---
<Slider one={one} two={two} client:load />
JSX file
import { ReactCompareSlider, ReactCompareSliderImage } from 'react-compare-slider';
const ImageComparisonSlider = ({ one, two }) => {
//console.log("Inside TagSelect:", value, checked);
return (
<ReactCompareSlider
itemOne={<ReactCompareSliderImage src={one} alt="Image one" />}
itemTwo={<ReactCompareSliderImage src={two} alt="Image two" />}
/>
);
};
export default ImageComparisonSlider;
In astro file i got error: Type '{ one: any; two: any; "client:load": true; }' is not assignable to type 'IntrinsicAttributes & { itemOne: any; itemTwo: any; }'.
Property 'one' does not exist on type 'IntrinsicAttributes & { itemOne: any; itemTwo: any; }'.