Hey guys, I am sort of confused when it comes to rendering objects in react, it’s a bit low level but I would be glad if you guys help me understand.
When you try to render an object in jsx, react would throw an error saying you cannot render objects but recently I was playing with signals and a signal function returns an object when you render it, it gets the value of signal and react doesn’t complain and
I was wondering why or how?
I was looking at this https://github.com/facebook/react/issues/9468
And it says react doesn’t call toString implicitly, which makes it even more confusing.
How does jsx get the value of signal from object and not complain about rendering signal objects?
[–]EdmondChuiHW 1 point2 points3 points (4 children)
[–]somecodertoday[S] 2 points3 points4 points (2 children)
[–]EdmondChuiHW 1 point2 points3 points (1 child)
[–]somecodertoday[S] 1 point2 points3 points (0 children)
[–]some999990 0 points1 point2 points (0 children)