improved tagging system
new settings page tab
This commit is contained in:
21
src/Tag.js
Normal file
21
src/Tag.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from "react";
|
||||
|
||||
import "./css/Tag.css"
|
||||
|
||||
class Tag extends React.Component {
|
||||
|
||||
constructor(props, context) {
|
||||
super(props, context);
|
||||
|
||||
this.props = props;
|
||||
}
|
||||
|
||||
render() {
|
||||
// todo onclick events correctly
|
||||
return (
|
||||
<button className='tagbtn' onClick={this.props.onClick}>{this.props.children}</button>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Tag;
|
||||
Reference in New Issue
Block a user