Closed cornking2020 closed 4 months ago
When you use Reader.tsx in a tsx file, it might throw an error.
Reader.tsx
tsx
Don't worry, it's an easy fix!
Just add a return statement to Reader.tsx, and return an empty HTML tag, like this: <></>
return
<></>
That should do the trick! Let me know if you need anything else.
Just use Reader in a TSX file and you won't have any errors.
Reader
TSX
Like this:
<VolumeRepresentation> <VolumeController /> <Reader vtkClass={vtkXMLImageDataReader} url={url} /> </VolumeRepresentation>
No.
Just give us a shout if you got any questions, no worries.
:tada: This PR is included in version 2.0.0-beta.18 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What
Why
When you use
Reader.tsx
in atsx
file, it might throw an error.How
Don't worry, it's an easy fix!
Just add a
return
statement toReader.tsx
, and return an empty HTML tag, like this:<></>
That should do the trick! Let me know if you need anything else.
How to Test
Just use
Reader
in aTSX
file and you won't have any errors.Like this:
Additional Remarks
No.
Just give us a shout if you got any questions, no worries.