File.prototype.createComponent()

Turn the file into a component.

Syntax

file.createComponent()

Description

Turn the file into a component.

Examples

Basic example, turn an empty file into a component.