Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function initializeInput(selector, color) {
- // just an example function
- $(selector).css("font-size", "21pt");
- }
- var myInput = React.createClass({
- componentDidMount: function () {
- initializeInput("#" + this.props.inputId);
- },
- render: function() {
- return (
- <input type="text" value="text goes here"
- name={this.props.inputName}
- id={this.props.inputId}/>
- );
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement