I'm trying to change data after fetching them in componentDidMount function.
Let's say I'm fetching one object:
{
text: "hello world"
}
but I want to add "!" to this string after fetching in componentDidMount. My question si, where should I edit fetched data? When I'm trying to edit it in componentDidMount I always get error saying that I cannot edit 'undefined'.
Thanks in advance.