How to render conditional jsx using ternary operator in react?

前端 未结 0 937
谎友^
谎友^ 2021-01-21 18:47

i want to use ternary operator for conditional rendering of jsx using react and javascript.

below is my code,

const Parent = () => {
    return (
               


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题