2

I have a simple react component defined as follows

var MyComp = React.createClass({
  render: function() {
    return (
      <div>This is a new component</div>
    );
  }
}) 
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script>

I want to be able to use this component in html by simply typing <MyComp></MyComp> instead of using React.render(); Is this possible?

1 Answer 1

2

I found that this does it - https://github.com/PixelsCommander/ReactiveElements perfectly well

Sign up to request clarification or add additional context in comments.

1 Comment

i don't know what to do, the repo don't tell what link to include can you tell me what file to download?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.