Components Extracted

This commit is contained in:
Leoh 2021-10-15 17:33:32 +05:30
parent 98a15c0c9e
commit d4c2d25586
5 changed files with 35 additions and 20 deletions

View file

View file

@ -0,0 +1,11 @@
import * as React from 'react';
export default function Index(props: any) {
return(
<div id="stats">
<div id="profile-name">{props.user_data.profile.name}</div>
<div id="hp">HP: {props.user_data.stats.hp}</div>
<div id="lvl">LVL: {props.user_data.stats.lvl}</div>
</div>
);
}