First commit to the new repository
:
This commit is contained in:
29
src/App.tsx
Executable file
29
src/App.tsx
Executable file
@@ -0,0 +1,29 @@
|
||||
import React, {ReactNode} from "react";
|
||||
import Game from "./Components/Game";
|
||||
import {LocaleContext, localeDefaultVal} from "./static/strings";
|
||||
import "semantic-ui-css/semantic.min.css";
|
||||
|
||||
interface AppState {
|
||||
}
|
||||
|
||||
interface AppProps {}
|
||||
|
||||
class App extends React.Component<AppProps, AppState> {
|
||||
constructor(props: AppProps) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
};
|
||||
}
|
||||
|
||||
render(): ReactNode {
|
||||
return (
|
||||
<LocaleContext.Provider value={localeDefaultVal}>
|
||||
<Game/>
|
||||
</LocaleContext.Provider>
|
||||
);
|
||||
}
|
||||
}
|
||||
App.contextType = LocaleContext;
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user