diff --git a/ReactJS.php b/ReactJS.php index 8877e37..1dd9197 100644 --- a/ReactJS.php +++ b/ReactJS.php @@ -77,7 +77,7 @@ function __construct($libsrc, $appsrc) { */ function setComponent($component, $data = null) { $this->component = $component; - $this->data = json_encode($data); + $this->data = json_encode($data, JSON_NUMERIC_CHECK); return $this; }