mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 10:56:31 +08:00
maintenance (structure): Full revamp of the project code structure
This commit is contained in:
24
client/components/input.js
Normal file
24
client/components/input.js
Normal file
@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import './input.scss';
|
||||
|
||||
export class Input extends React.Component {
|
||||
constructor(props){
|
||||
super(props);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<input
|
||||
className="component_input"
|
||||
{...this.props}
|
||||
ref={(comp) => { this.ref = comp; }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Input.propTypes = {
|
||||
type: PropTypes.string,
|
||||
placeholder: PropTypes.string
|
||||
};
|
||||
Reference in New Issue
Block a user