implement
Implement/Introduction/Props

If you are going to write actual applications you will need to provide properties to elements.

This can be done by adding an object before the elements children like so:

Div({} /* children */);

Let's use the props array to change the text color of this heading to red.

H1({ style: { color: "red" } }, "Props");
index.ts
import { Button, Div, H1, P } from "@implementjs/core";

export default function App() {
	return H1("Props");
}
Preview