score:2
you need to provide the key props to the reactcsstransitiongroup component not the child li tag. also using an index parameter in your map function to populate the key.
something like this will work
peoplelist.map(function(person, index){
return(
<reactcsstransitiongroup
key={index}
transitionname="example"
transitionappear={true} transitionappeartimeout={1000}
transitionenter={true}
transitionentertimeout={1000}
transitionleave={true}
transitionleavetimeout={1000}
>
<li key={index}>{person.name}, {person.age}</li>
)
}
Source: stackoverflow.com
Related Query
- ReactJS key prop not working in CSS animation
- simple css animation not working on dynamic reactjs element
- key is not available as prop in the Child component in ReactJs
- ReactJS CSS Class not working
- React css webkit animation is not working after setState
- transition between components in reactjs not working and css properties not being applied
- Why CSS pulse animation is not working without any errors?
- Spring animation is not working in ReactJS
- Reactjs setState() with a dynamic key name not working
- Reactjs pass value as prop after setState not working
- CSS keyframe animation is not working on a react component
- Tailwind css group hover animation not working
- Keyframes animation not working when multiple instances of a Component rendered with different props?Width used for animation depends on a prop value
- Linear Gradient CSS Not Working in ReactJS
- setState key with dynamic index not working - ReactJS
- backgroundImage path for css from public folder not working after build in reactjs
- CSS only toggle switch not working in ReactJs
- Animation css not working in safari browser
- ReactJS Bootstrap Navbar and Routing not working together
- ReactJS Router V4 history.push not working
- Inline style is not working ReactJS
- clearInterval is not working in reactjs
- Reactjs - Demo Application is not working
- PrivateRoute not working in reactjs react-router-dom
- CSS modules not working for react version 16.6.0
- CSS 100% height not working in React app
- reactjs chrome extension message passing not working
- React : CSS class name import not working
- React js css inline style margin right not working
- Material UI v5 server side rendering css order not working with gatsby
More Query from same tag
- React testing with Jest and Enzyme (in Symfony) got "Syntax Error: Unexpected token import"
- How render object in React Router?
- Is it best to perform an API call on componentDidMount or componentWillMount?
- Link to single post in react
- Camel cased CSS in Styled Components or Emotion for regular React?
- how to get selected item in an array from another functional component react
- React-query: typescript and abstract useMutations?
- ReactDOMServer - how to ignore trans-pile some values with renderToString method
- Editing specific table row content in React
- Rendering a dynamic child component in React
- react toogle state value on keydown
- Spring Boot + React bundling as WebJar with custom context-path for the React app
- How to use two different fonts on a page with the monaco editor?
- REACT - .map make props as undefined
- ReactJS component only recognizes first parameter I pass
- React.js -- Functional Components -- DOM manipulation, change the style of elements
- Is react-native good for both web development and mobile development
- Why react useQuery() doesnt fetch the newest data after a mutation?
- React updating array of states via useState
- How to appropriately migrate from componentWillReceiveProps to getDerivedStateFromProps when 'this' is being used
- Undefined error when clicking on checkbox in ReactJs
- Spread operator issue: {...someObject, someField: "someValue"} being treated as a function?
- Axios auto refresh every 60 seconds with Reactjs
- unable to deploying react app under subdirectory on nginx running in docker container
- Axios delete giving 404 after deleting from database
- Formatting date React
- ReactJS: How to constantly check if token in localstorage has expired?
- NextJS issue with server side rendering with react-d3-tree
- Props should contain an interface - how to define that
- Formik <FieldArray> initialValue undefined if using componentDidMount/setState