Replace sample language with deadfish

This commit is contained in:
Nilay Majorwar
2021-12-18 18:16:22 +05:30
parent bb9e85f422
commit 3ace388d90
8 changed files with 161 additions and 141 deletions

View File

@@ -0,0 +1,24 @@
import { RendererProps } from "../types";
import { DFRS } from "./constants";
const styles = {
container: {
width: "100%",
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
},
text: {
fontSize: "4em",
},
};
export const Renderer = ({ state }: RendererProps<DFRS>) => {
const value = state == null ? 0 : state.value;
return (
<div style={styles.container}>
<h1 style={styles.text}>{value}</h1>
</div>
);
};