#### Example: Default Labels ```jsx inside Markdown import { useState } from 'react'; const [state, setState] = useState([ { startDate: new Date(), endDate: null, key: 'selection' } ]); setState([item.selection])} ranges={state} />; ``` #### Example: Custom range labels ```jsx inside Markdown import { useState } from 'react'; const renderStaticRangeLabel = () => ( ); class CustomStaticRangeLabelContent extends React.Component { constructor(props) { super(props); this.state = { currentDateString: Date(), }; this.intervalId = setInterval(() => { this.setState({ currentDateString: Date(), }); }, 1000); } componentWillUnmount() { if (this.intervalId) { clearInterval(this.intervalId); } } render() { const { currentDateString } = this.state; const { text } = this.props; return ( {text} {currentDateString} ); } } const [state, setState] = useState([ { startDate: new Date(), endDate: null, key: 'selection' } ]); setState([item.selection])} ranges={state} renderStaticRangeLabel={renderStaticRangeLabel} staticRanges={[ { label: 'Hoy', hasCustomRendering: true, range: () => ({ startDate: new Date(), endDate: new Date() }), isSelected() { return true; } } ]} />; ```