Skip to content

fix: syntax error and typo #16

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Components-and-Hooks/HOC-Props-and-Custom-Hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ function withStyles(Component) {
}
}

const MyButton = () = <Button title="Press me!" style={{ color: 'red' }} />
const MyButton = () => <Button title="Press me!" style={{ color: 'red' }} />
const StyledButton = withStyles(MyButton)
```

Expand Down Expand Up @@ -778,8 +778,7 @@ In this case, we have a stateful Input component. However, the sibling component

```javascript
function Input({ value, handleChange }) {
return;
<input value={value} onChange={(e) => handleChange(e.target.value)} />;
return <input value={value} onChange={(e) => handleChange(e.target.value)} />;
}

export default function App() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Output of the Basic **FlashList** implementation (**IOS** + **Android**) in my A

## Important Props of FlashList

Before diving deep, into the **performance improvement** of FlatList, let’s first understand some props of FlatList that will be used to improve the performance.
Before diving deep, into the **performance improvement** of FlashList, let’s first understand some props of Flashlist that will be used to improve the performance.

### **_estimatedItemSize_**

Expand Down