|
8 years ago | |
---|---|---|
normal | 8 years ago | |
react | 8 years ago | |
.gitignore | 8 years ago | |
README.md | 8 years ago |
日历组件
个人娱乐所写,分为普通js方式以及react组件形式
支持功能:
import React from 'react';
import ReactDOM from 'react-dom';
import Calendar from './Calendar';
const App = React.createClass({
render() {
return (
<Calendar onSelectDate={this.selectDate} year='2016' month='8' day='7' tags={[5, 22]} />
);
}
});
export default App;