-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
input component created #40
base: develop
Are you sure you want to change the base?
input component created #40
Conversation
type="textbox" | ||
name={name} | ||
value={value} | ||
onChange={(e) => onChange(e.target.value)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few pieces of feedback:
- add onBlur and onFocus event
- add data-test-id
- can we also allow ...rest ?
@@ -1,8 +1,8 @@ | |||
import StarbucksInput from './index.js'; | |||
import StarbucksInput from './StarbucksInput'; | |||
import { render, screen } from '@testing-library/react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3rd party imports should be on the top always
import { render, screen } from '@testing-library/react'; | ||
import userEvent from '@testing-library/user-event' | ||
|
||
describe.skip('starbucks input tests', () => { | ||
describe('starbucks input tests', () => { | ||
test('it renders input component', async () => { | ||
// Assemble | ||
const elName = 'nickname'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use clear and elaborate variable names
|
||
function App() { | ||
return ( | ||
<div className="App"> | ||
<StarbucksInput/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please clean the code not required here.
No description provided.