Home > other >  Is there any way to convert a string JSX to React the native component level reaction?
Is there any way to convert a string JSX to React the native component level reaction?

Time:11-27


I tried to transfer from a server "hello" string to present in the React Native,
But even after remove quotes, it won't appear, even after removing quotes, the type of "hello" and "string", looks' objects' must be inserted into the rendering function,
Is there any way to have a try? See examples of the expo, the client receives the basically produce real network application of lines of code, I think there may be some method,
Please share with me any idea!






CodePudding user response:


I think, maybe it is easier to take "hello" string, and create like JSX object:
Render () {
Const hello="hello";
Return (& lt; Span> {hello} & lt;/span>);
}

CodePudding user response:

The building Lord, this problem can you solve it? I also met
  • Related