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 1bebeec commit dfe4793Copy full SHA for dfe4793
README.md
@@ -21,8 +21,11 @@ use Arryanggaputra\ViewReactSource;
21
22
$reactSource = new ViewReactSource('/path/your/react/or/bundle/*.js');
23
$view = new ViewReact($reactSource);
24
-echo $view->render('YourComponent', [
25
- 'props' => 'value',
26
- 'anotherProps' => 'value',
+echo $view->render('HelloWorldComponent', [
+ 'name' => 'Jon',
27
]);
28
```
+### Result
29
+```html
30
+<div data-reactid="11"><div data-reactid="12"><h1 data-reactid="13">Hello World <b>John</b></h1></div></div>
31
+```
0 commit comments