import './Playground.scss' import React, { FC } from 'react' import { ClassPicker } from '../components/ClassPicker' import { RouteComponentProps } from 'react-router' import { Icon } from '../components/Icon' import { Tooltip } from '../components/Tooltip' import { Talent } from '../components/Talent' import { talentsById } from '../data/talents' import { Map } from 'immutable' import { SpellTooltip } from '../components/SpellTooltip'; import classNames from 'classnames' interface Props extends RouteComponentProps { // } const iconNames = [ '', 'this_doesnot_exist_and_will_cause_default_icon', 'spell_holy_prayerofhealing', 'ability_sap', 'class_shaman', 'inv_ammo_firetar', 'spell_shadow_requiem', ] const talentIds = [ 76, 181, 182, 821 ] const DEEP_WOUNDS =

Rank 1/3

Your critical strikes cause the opponent to bleed, dealing 20% of your melee weapon's average damage over 12 sec.

Next rank:

Your critical strikes cause the opponent to bleed, dealing 40% of your melee weapon's average damage over 12 sec.

Click to learn

const Section: FC = (props) => { return

{props.title}

{props.children}
} export default class Playground extends React.PureComponent { static whyDidYouRender = true state = { points: Map() } handleTalentClick = (id) => { const { points } = this.state this.setState({ points: points.set(id, points.get(id, 0) + 1) }) } handleTalentRightClick = (id) => { const { points } = this.state this.setState({ points: points.set(id, Math.max(0, points.get(id, 0) - 1)) }) } render() { const { points } = this.state return (

Small Icons

{iconNames.map((n) => )}

Medium Icons

{iconNames.map((n) => )}

Large Icons

{iconNames.map((n) => )}

Static

Interactive

{talentIds.map(id => )}

No params

Simple text content

Using HTML inside

I can use normal HTML in here
And even link to exciting places!

With title and icon

And some description text here

Fixed width

{DEEP_WOUNDS}

Overriding fixed width

{React.cloneElement(DEEP_WOUNDS, { width: '500px' })}

No fixed

{React.cloneElement(DEEP_WOUNDS, { fixed: false })}
) } }