UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

19 lines (15 loc) 486 B
/* eslint-disable no-console, react/prop-types */ import React from 'react'; import createReactClass from 'create-react-class'; import Datepicker from '~/components/date-picker'; const Example = createReactClass({ displayName: 'DatepickerExample', render() { return ( <Datepicker dateDisabled={({ date }) => date.getDay() > 5 || date.getDay() < 1} /> ); }, }); export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime