modern-components
is a library that gives beautiful components to be used in a React project
yarn add @dbenfouzari/modern-components
And start using :
import * as React from 'react';
import { Calendar } from '@dbenfouzari/modern-components';
interface ExampleState {
value: Date;
}
class MyExample extends React.Component<{}, ExampleState> {
state = {
value: new Date()
}
handleChange = (nextDate: Date) => {
this.setState({ value: nextDate });
}
render () {
return (
<div>
<Calendar value={this.state.value} onChange={this.handleChange} />
</div>
);
}
};
- Clone this repo to your local machine using
https://github.com/dbenfouzari/modern-components
yarn install
yarn start
That will show you the library