Type mappings
Contents
It’s time to build your first component - let’s focus on rendering persons.
Datafetcher
-
TODO
Component
-
TODO
Right of the bat, start by adding a React component (tsx) file to your project:
TODO: Place elsewhere
/src/main/resources/react4xp/components/Person.tsx
TODO
1 | React component that will render "Hello React4XP!" |
2 | The export default line is required, it may take a props object and must return a react component. |
This component will be executed, and rendered server-side.
Next
What a start, coming up, let’s make the component come alive on the client side as well.