Skip to content

dirslashls/sqlframes-cra-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Create React App for SQL Frames

This project was bootstrapped with Create React App.

Provided Components

  1. SQLFrames - this loads the dependencies
  2. SQLFramesContext - this stores the loaded SQLFrames library object (avoids storing in window object for example). Context is automatically set up by SQLFrames component.
  3. SQLFramesComponent - this renders any object produced by SQL Frames library
  4. SQLFramesApp - a sample app that renders a dataframe and a chart.
  5. REPL - SQL Frames REPL App component.

Key Modifications

  1. src/App.js - added SQLFramesApp into this main app
  2. public/index.html - style sheets and requirejs. Also data-theme for dark (light) mode.
  3. src/index.js - Wrapped App component with SQLFrames to load the SQL Frames dependency. In addition to rendering the App it also renders SQL Frames REPL.
  4. src/index.css - css for making the dark mode to work.

About

Integrating SQL Frames loaded via cdn into react app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published