We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c874f09 commit 76ade86Copy full SHA for 76ade86
application/views/react/content.php
@@ -5,7 +5,7 @@
5
$include_file = "/js/react/components/{$_module_name}.js";
6
?>
7
System.import('<?php echo $include_file; ?>').then(function(module) {
8
- var props = {}
+ var props = '<?php echo json_encode($react_vars, JSON_FORCE_OBJECT); ?>'
9
ReactDOM.render( React.createElement(module.default, props), document.getElementById('content') )
10
})
11
</script>
0 commit comments