In Blaze, we have a elegant way to define helpers. Template.registerHelper. Does jsx have something equivalent?
If possible, i’d like to even chain helper calls… something like:
{ formatAsCurrency round this.state.price}
cheers
In Blaze, we have a elegant way to define helpers. Template.registerHelper. Does jsx have something equivalent?
If possible, i’d like to even chain helper calls… something like:
{ formatAsCurrency round this.state.price}
cheers
if formatAsCurrency and round are javascript functions, then you just do
{formatAsCurrency(round(this.state.price))} - surprise, it is JavaScript.