Help with conditional rendering in React

hi guys!! thanks for the help so far! it has been awesome! but I just need a little push to achieve what i want. Now here is the project so far: The default state should show both the editor and the previewer but so far I only end up with the editor at first. However If I don’t click on the red button the previewer won’t show up. Now I know it’s the ternary condition in the render method but I have tweaked it show much so that I have ran out of ideas and so I need help on how to tweak it appropriately to get the result I want. looking forward to the help. Thanks.