OpenJSX / jsx-to-html

Render JSX-IR to HTML string
MIT License
33 stars 3 forks source link

Is it only for output function? #1

Closed EasonWang01 closed 8 years ago

EasonWang01 commented 8 years ago

https://tonicdev.com/npm/jsx-to-html

For testing


var HelloWorld = React.createClass({
  render: function() {
    return (
      <p>
        Hello, <input type="text" placeholder="Your name here" />!
        It is {this.props.date.toTimeString()}
      </p>
    );
  }
});

Is just output a function,can it output the original HTML syntax?

NekR commented 8 years ago

This JSX isn't about React. With React, use their JSX. On Feb 25, 2016 04:47, "yicheng" notifications@github.com wrote:

https://tonicdev.com/npm/jsx-to-html

For testing

var HelloWorld = React.createClass({ render: function() { return (

Hello, ! It is {this.props.date.toTimeString()}

);

} });

How to import react?

— Reply to this email directly or view it on GitHub https://github.com/OpenJSX/jsx-to-html/issues/1.

EasonWang01 commented 8 years ago

thanks