Interpolated Tag
cihanzenginff opened this issue · comments
cihanzenginff commented
Hello, i'm using some validation plugin.
and want to show message like that in jsx:
{this.validator.message("title", this.state.title, "required|alpha")}
i tried like that:
#{this.validator.message("title", this.state.title, "required|alpha")}
but getting error: Error: InterpolatedTag is not yet supported
it's mean i can't use it not yet ?
Forbes Lindesay commented
If this.validator.message
returns a component:
- const Message = this.validator.message("title", this.state.title, "required|alpha");
Message
If this.validator.message
returns a jsx element or string:
= this.validator.message("title", this.state.title, "required|alpha");
cihanzenginff commented
worked perfectly thanks