polkadot-js/client

View on GitHub
packages/client-www/src/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
// Copyright 2017-2019 @polkadot/client-www authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.

import React from 'react';
import ReactDOM from 'react-dom';

import App from './App';

const rootElement = document.getElementById('root');

if (!rootElement) {
  throw new Error('Unable to find element with id \'root\'');
}

ReactDOM.render(<App />, rootElement);