mirror of
https://github.com/encounter/react-add-to-calendar.git
synced 2026-07-10 21:18:44 -07:00
initial commit
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
import React from 'react'
|
||||
|
||||
export default React.createClass({
|
||||
displayName: 'CodeExampleComponent',
|
||||
|
||||
propTypes: {
|
||||
children: React.PropTypes.element,
|
||||
id: React.PropTypes.number,
|
||||
title: React.PropTypes.string
|
||||
},
|
||||
|
||||
render () {
|
||||
return <div key={this.props.id} id={`example-${this.props.id}`} className="example">
|
||||
<h2 className="example__heading">{this.props.title}</h2>
|
||||
{this.props.children}
|
||||
</div>
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user