Skip to content

Files

Latest commit

6081c9f · Nov 5, 2024

History

History

using react and other custom scripts and styles

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 22, 2023
Aug 1, 2024
Jul 22, 2023
Aug 1, 2024
Jul 31, 2024
Nov 5, 2024
Jul 9, 2023
Jul 9, 2023
Aug 1, 2024
Jul 31, 2024
Jul 9, 2023
Nov 5, 2024

README.md

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.