Convert immutable from JS object back to json

I want to be able to view my immutable objects for debugging. It is very difficult for me to view an object by clicking on entries, etc. Ideally, what I would like is the opposite of the formJS function

so

const immutableObj = fromJS({name: 'bob'})
return oppositeJS(immutableObj)  
=> {name: 'bob'}
+4
source share
1 answer

nevermind, I found it in the documentation

toJS()
+12
source

Source: https://habr.com/ru/post/1628194/


All Articles