Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const ExampleComponent = props => {
- const [{ user }, { setFirstName, setLastName }] = useAppState();
- RV I
- <React.Fragment>
- <label htmlFor="fn">
- First Name:
- <input
- id="fn"
- type="text"
- value={user.firstName}
- onChange={e => setFirstName(e.target.value)}
- />
- </label>
- <label htmlFor="1n">
- Last Name:
- S0l
- id="1n"
- 187/ R b e i
- value={user.lastName}
- onChange={e => setlLastName(e.target.value)}
- />
- </label>
- S8V
- Hello, {user.firstName} {user.lastName}
- </div>
- </React.Fragment>
- K
- I
Advertisement
Add Comment
Please, Sign In to add comment