Skip to content

Commit a0513bc

Browse files
committed
docs(readme): add missing return statement
1 parent d67aac6 commit a0513bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,14 @@ import 'react-semantic-ui-datepickers/dist/react-semantic-ui-datepickers.css';
5252
const AppWithBasic = () => {
5353
const [currentDate, setNewDate] = useState(null);
5454
const onChange = (event, data) => setNewDate(data.value);
55-
<SemanticDatepicker onChange={onChange} />;
55+
56+
return <SemanticDatepicker onChange={onChange} />;
5657
};
5758

5859
const AppWithRangeAndInPortuguese = () => {
5960
const [currentRange, setNewRange] = useState([]);
6061
const onChange = (event, data) => setNewRange(data.value);
62+
6163
return <SemanticDatepicker locale="pt-BR" onChange={onChange} type="range" />;
6264
};
6365
```
@@ -165,6 +167,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
165167

166168
<!-- markdownlint-enable -->
167169
<!-- prettier-ignore-end -->
170+
168171
<!-- ALL-CONTRIBUTORS-LIST:END -->
169172

170173
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!

0 commit comments

Comments
 (0)