Passing arguments to react-template-helper's "component="


Hello all, in react-template-helper, is there a way to pass an argument into the component?
something like:

{{> React component=view 'myVar'}}



Yes, just do

{{> React component=view myVar='myVar'}}

And you can access it with this.props.myVar


Thank you for the reply merlinpatt

Apologies for not being clear on the question, what I am trying to achieve is passing an argument when view in component=view is evaluated. For example

{{> React component=view 'hello'}}
  view: function (bar) {
    console.log(bar)  // logs 'hello'
    return someComponent;


What are you trying to achieve by passing an argument into the component?


I want to make a global helper that returns a component depending on the argument passed in


You can do this within React and will be much easier than trying to do it through Blaze. Check it out here