rtl props seems wrong typed
See original GitHub issueHello
rtl
props is typed as string
but it seems it should be boolean to work with dir={rtl && 'rtl'}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Can't access prop values · Issue #724 · testing-library/react ...
I need to access prop value to test its severity. ... import PropTypes from 'prop-types'; import { Snackbar } from '@materi...
Read more >React Testing Library not rendering with correct props
However when I try to test it using RTL and Jest: ... It fails because my text is never passed properly as a...
Read more >Common mistakes with React Testing Library - Kent C. Dodds
Some mistakes I frequently see people making with React Testing Library. ... This could be // because the text is broken up by...
Read more >Frontend Handbook | React / Testing best practices - Infinum
A quick how to on using Jest to check if correct props are passed to a child component. This example is purely to...
Read more >Writing unit tests with React, Typescript, and react-testing-library
I'm using generic React.ComponentProps defined within @types/react to get the type I need. No exporting/importing of the props type needed!
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No I think the html props
dir
is waiting forrtl
,ltr
orauto
but not a boolean.For far as I remember, swiper had this issue always… For every project, I say I would never use this package and end up using it because I’ve no enough time to find a better one without any issue…
When you try to change the direction dynamically, it won’t work, but it’s fine with reload… please please please fix this issue. I’m dealing with this bug for 2 years and it’s still there!!!