0

enter image description here

Here the 2nd Inputbase should only be displayed if the type is card The Inputbase is the function of React-beautiful-dnd

I have tried using normally the if and else and ternary but it isnt working

Gaurav
  • 1
  • 1

1 Answers1

0

To display the second input use the ternary operator condition like this:

{type === 'card'?(
//add your second input here
):(null)

and remove the ternary operator logic from InputBase's placeholder