Open-source interactive fiction engine, powered by React, Redux and TypeScript. _ https://discoteque.pub/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
375 B

import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import { EngineConfig } from './engine/types';
function initApp<GS = object, MT = undefined, ST extends string = string>(config: EngineConfig<GS, MT, ST>) {
ReactDOM.render(<App<GS, MT, ST> config={config} />, document.getElementById('root'));
}
export default initApp;