Skip to content

Instantly share code, notes, and snippets.

View nutangwari's full-sized avatar
🎯
Focusing

Nutan Gwari nutangwari

🎯
Focusing
View GitHub Profile
@adarsh0d
adarsh0d / Sample.js
Created July 17, 2021 04:45
Convert react component to web component (antd component to web component)
import React from 'react'
import PropTypes from 'prop-types';
import { Button, DatePicker } from 'antd';
const Sample = (props) => {
console.log(props)
const { onbuttonpress, ...remainingProps } = props
return (
<DatePicker {...remainingProps} onChange={(date, dateString) => onbuttonpress({ detail: {date, dateString} })} />
)
}