Learn how to use JSX syntax with Canvacord.
@jsx
pragma and you are good to go.JSX.createElement
function to transform the JSX syntax into the equivalent JavaScript code. The JSX.Fragment
is used to wrap multiple elements in a single parent element. These functions are exported by canvacord
as JSX
namespace.
tsconfig.json
file:
Builder
class to create images without using JSX. The Builder
class provides a way to create images using a more traditional approach.