JSFiddle - React, Tailwind, and code Playground

by igalst

Babel + JSX

import style from '...';
import { Component } from 'React';

class BadgedIcon extendes Component {
	const {
  	badge,
    ...restProps
  } = this.props;
  
	render() {
	  return (
    	<div>
      	<span className={style.badge}>{badge}</span>
        <Icon {...restProps}/>
      </div>
    )
   }
}


// <BadgedIcon badge="10" size="normal" title="רשימת מנכונים">מכונים</BadgedIcon>