You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/jsx/tsx.md
+21
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,27 @@ class MyComponent extends React.Component<Props, {}> {
55
55
<MyComponentfoo="bar"/>
56
56
```
57
57
58
+
### JSX Tip : Interface for renderable
59
+
60
+
React can render a few things like `JSX` or `string`. There are all consolidated into the type `React.ReactNode` so use it for when you want to accept renderables e.g.
TypeScript provides you with the ability to use something other than React with JSX in a type safe manner. The following lists the customizability points, but note that this is for advanced UI framework authors:
0 commit comments