How to use the @ant-design/icons-react/es/utils.generate function in @ant-design/icons-react

To help you get started, we’ve selected a few @ant-design/icons-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Beven91 / webpack-ant-icon-loader / src / runtime.es.js View on Github external
render() {
    const { originalType, rootProps } = this.props;
    const target = this.getIcon(originalType);
    if (target) {
      return React.Children.only(generate(target.icon, 'svg-' + target.name, rootProps));
    }
    else {
      return <svg></svg>;
    }
  }
}

@ant-design/icons-react

<h1 align="center"> Ant Design Icons for React </h1>

MIT
Latest version published 6 years ago

Package Health Score

66 / 100
Full package analysis