DEV Community

Discussion on: How is it like to work with GatsbyJS as a Nuxt.js developer?

Collapse
 
ecksters profile image
Daniel Eck

I just wanted to point out that your example of React lacking inline conditional logic is quite a bit more convoluted than it needs to be, you could just do this:

<div>
    {true && <span>This is it!</span>}
    {!true && <span>Something is wrong!</span>}
</div>
Collapse
 
adnanbabakan profile image
Adnan Babakan (he/him)

Hi
This is something more like a JavaScript snippet inside the template rather than a shorthand inline condition. But it still works I suppose! So, thanks!