Comments (2)
you will need to provide key prop to both icons
if (this.state.active) {
console.log("active");
icon = <MdFavoriteBorder key="favorite-border" />;
} else {
console.log("passive");
icon = <MdFavorite key="favorite" />;
}
from react-svg-morph.
OK, thanks
from react-svg-morph.
Related Issues (20)
- change method toHex
- SVG rendering glitch. HOT 4
- Update to npm with new change HOT 4
- ReactNative Android Support HOT 1
- Add possibility to set "preserveAspectRatio" for svg HOT 2
- easing function with MorphReplace HOT 4
- Using react-svg-morph with react-icons HOT 3
- Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
- Uncaught TypeError: instance.render is not a function renderToJson.js:24 HOT 4
- It's not working for me. Thrown error: Expected a class but got undefined HOT 1
- MorphReplace with more than 2 Icons
- Feature request: operate on specific elements in an svg HOT 1
- Invalid DOM property for dash-case SVG attributes, such as stroke-width
- Unsafe ComponentWill... lifecycle methods HOT 1
- Trivial example of using MorphReplace alongisde with react-icons is no longer working
- this lib is dead HOT 1
- Basic example doesn't work HOT 6
- Add warning when key prop is not provided in children node
- New className API HOT 1
- It's not work HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-svg-morph.