react格式化展示json
<Modal
title="Json数据展示"
visible={true}
width={1280}
>
<pre>{JSON.stringify(code, null, 2)}</pre>
</Modal>
https://stackoverflow.com/questions/30765163/pretty-printing-json-with-react