Skip to content

Commit dfe4793

Browse files
Update README, add Result example
1 parent 1bebeec commit dfe4793

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ use Arryanggaputra\ViewReactSource;
2121

2222
$reactSource = new ViewReactSource('/path/your/react/or/bundle/*.js');
2323
$view = new ViewReact($reactSource);
24-
echo $view->render('YourComponent', [
25-
'props' => 'value',
26-
'anotherProps' => 'value',
24+
echo $view->render('HelloWorldComponent', [
25+
'name' => 'Jon',
2726
]);
2827
```
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

Comments
 (0)