react-json-pretty
Advanced tools
Comparing version 1.7.2 to 1.7.3
{ | ||
"name": "react-json-pretty", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "A code formatting tool for raw json data", | ||
@@ -5,0 +5,0 @@ "main": "src/JSONPretty.js", |
@@ -70,6 +70,6 @@ # React JSON Pretty | ||
if (key === 'cccc') { | ||
value += '~~~abc'; | ||
value += '~~~abc'; | ||
} | ||
if (key === 'gggg') { | ||
value *=10; | ||
value *=10; | ||
} | ||
@@ -93,3 +93,6 @@ return value; | ||
// The final className will be 'test-class custom-json-pretty' | ||
<JSONPretty className="test-class" themeClassName="custom-json-pretty" json={yourjson}></JSONPretty> | ||
<JSONPretty className="test-class" themeClassName="custom-json-pretty" | ||
json={yourjson} | ||
> | ||
</JSONPretty> | ||
``` | ||
@@ -109,3 +112,3 @@ | ||
1. Add JSON formation properties —— `replacer`, `space` | ||
1. Add JSON formation properties —— `replacer` `space` | ||
2. Add class propertieds —— `themeClassName` | ||
@@ -112,0 +115,0 @@ 3. Add .npmignore |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
84351
140