Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svg 转成组件在项目中使用 #30

Open
luoxue-victor opened this issue Dec 21, 2019 · 0 comments
Open

svg 转成组件在项目中使用 #30

luoxue-victor opened this issue Dec 21, 2019 · 0 comments
Labels
TODO 一些计划中要做的事情
Projects

Comments

@luoxue-victor
Copy link
Owner

https://umijs.org/zh/guide/module-processor.html#module-list

import { ReactComponent as Avatar } from './avatar.svg'

function Example() {
  return <Avatar />
}
@luoxue-victor luoxue-victor added the TODO 一些计划中要做的事情 label Dec 21, 2019
@luoxue-victor luoxue-victor changed the title svg svg 转成组件在项目中使用 Dec 21, 2019
@luoxue-victor luoxue-victor added this to todo in 计划 Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TODO 一些计划中要做的事情
Projects
计划
  
todo
Development

No branches or pull requests

1 participant