Here's one quick way you can try.
This works because it creates an object with key's corresponding to the Object, which you can select with the string passed into props.
It may not be the most efficient, I'm sure others will be able to suggest a more efficient way, but it should work.
codesandbox.io/s/silly-fast-bl7jc?...
That's already much better ! Thanks :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here's one quick way you can try.
This works because it creates an object with key's corresponding to the Object, which you can select with the string passed into props.
It may not be the most efficient, I'm sure others will be able to suggest a more efficient way, but it should work.
codesandbox.io/s/silly-fast-bl7jc?...
That's already much better ! Thanks :)