@ -144,7 +144,7 @@ function _asset(string $assetURI): string {
Conventions regarding our react views __must be respected in order to be renderable__.
Conventions regarding our react views __must be respected in order to be renderable__.
### The `render(any)` function
### The `render(any)` function
__any react view file__ should __export__ a function with signature `render(arguments: any)`, which responsibility is to render the view.
Any React view component needs to be default exported in order to be imported and used from PHP. Those components will receive as props the arguments that the PHP server has transmitted.
The `arguments` parameter is used to pass data to the react component.
The `arguments` parameter is used to pass data to the react component.
If you take a look at the `front/views/SampleForm.tsx` view, here's the definition of its render function :
If you take a look at the `front/views/SampleForm.tsx` view, here's the definition of its render function :