Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 894 Bytes

File metadata and controls

23 lines (13 loc) · 894 Bytes

Custom javascript and CSS

This example shows how to use custom javascript and CSS in your application. It is compatible with SQLPage v0.7.3 and above.

It integrates a simple react component and loads it with properties coming from a SQL query.

Screenshots

example SQLPage application with a custom style

example client-side reactive SQLPage application with React

example physics equations

Notes

This example relies on a CDN to load the react library, and the example component is written in plain Javscript, not JSX.

You can also use include a local copy of react, and write your components in JSX/TSX, you will simply need to add a build step to your application to compile the JSX/TSX files into plain JS, and then include that build result in your application.