Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, {useState} from 'react';
- const Example = (props) => {
- let [item, setItem] = useState(props.value);
- return (
- <div>
- {item}.
- </div>
- )
- }
- export default Example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement