No Framework
One option for JavaScript/TypeScript development is to not use a framework at all and just relying on plain JavaScript/TypeScript, HTML, CSS, and DOM manipulation. To do so one must manually build out their DOM structure via JavaScript/TypeScript DOM calls and manually setup the details of the HTML.
Setup and Usage
To use Vanilla JS/TS...
- Setup a Renderer.
Once the above steps are satisfied the node is ready to use react and Openexus together.
Setup a Renderer
A renderer tells a node what to display for the node. Some nodes may not require a renderer, but most do. If you have a View property, or a property that has a datatype of html
you will need to setup a renderer for it as shown here.
src/main.js
// Create a render function
function render() {
// Your DOM setup and manipulation go here...
}
// Set the ((view)) property to be the render function
context.set('view', context.render(render))