Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<template if:true={showTom}>
<img src=""/>
<template if:false={showTom}>
<img src=""/>
import { LightningElement } from 'lwc';
export default class HelloConditionalRendering extends LightningElement {
showTom = false;
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="" fqn="TomAndJerry">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment