Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
habit. in react etc to trigger an update props/state need to be actually different objects, not mutations. spread makes a new object instead of mutating, but if that doesn't matter then
push
would be a bit of a performance gainnice job---and thanks for making the names more descriptive. i already mentioned that you don't need the temporary variables since replace is not mutating, so yeah...
aside from that, i would just note that your regex doesn't need the
[a-z]
you've got in there, since\w+
handles "word characters, one or more."