src/generators/dom/visitors/IfBlock.js/simple
function simple ( generator, block, state, node, branch, dynamic, { name, anchor, params } ) {
	block.builders.create.addBlock( deindent`
		var ${name} = ${branch.condition} && ${branch.block}( ${params}, ${block.component} );
	` );

	const isToplevel = !state.parentNode;

	if ( isToplevel ) {
		block.builders.mount.addLine( `if ( ${name} ) ${name}.mount( ${block.target}, ${anchor} );` );
	} else {
		block.builders.create.addLine( `if ( ${name} ) ${name}.mount( ${state.parentNode}, ${anchor} );` );
	}

	if ( dynamic ) {
		block.builders.update.addBlock( deindent`
			if ( ${branch.condition} ) {
				if ( ${name} ) {
					${name}.update( changed, ${params} );
				} else {
					${name} = ${branch.block}( ${params}, ${block.component} );
					${name}.mount( ${anchor}.parentNode, ${anchor} );
				}
			} else if ( ${name} ) {
				${name}.destroy( true );
				${name} = null;
			}
		` );
	} else {
		block.builders.update.addBlock( deindent`
			if ( ${branch.condition} ) {
				if ( !${name} ) {
					${name} = ${branch.block}( ${params}, ${block.component} );
					${name}.mount( ${anchor}.parentNode, ${anchor} );
				}
			} else if ( ${name} ) {
				${name}.destroy( true );
				${name} = null;
			}
		` );
	}
}