Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. function initializeInput(selector, color) {
  2. // just an example function
  3. $(selector).css("font-size", "21pt");
  4. }
  5.  
  6. var myInput = React.createClass({
  7. componentDidMount: function () {
  8. initializeInput("#" + this.props.inputId);
  9. },
  10. render: function() {
  11. return (
  12. <input type="text" value="text goes here"
  13. name={this.props.inputName}
  14. id={this.props.inputId}/>
  15. );
  16. }
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement