@sassoftware/cra-template-viya-app-quickstart
Version:
Template for typical SAS Viya Applications
21 lines (18 loc) • 724 B
JavaScript
/*
* Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import React from 'react';
import ReactDOM from 'react-dom';
import { setupViya } from './providers';
import App from './App';
//import * as serviceWorker from 'serviceWorker';
setupViya(true)
.then((r) => {
ReactDOM.render(<App {...r} />, document.querySelector('#root'));
})
.catch((err) => console.log(JSON.stringify(err, null, 4)));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
// serviceWorker.unregister();