Skip to content

Commit 5f0bd12

Browse files
committed
reusing-logic-with-custom-hooks.md
1 parent a1be6fb commit 5f0bd12

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/content/learn/reusing-logic-with-custom-hooks.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -837,19 +837,7 @@ export default function ChatRoom({ roomId }) {
837837
838838
### Olay yöneticilerini özel Hook'lara geçirme {/*passing-event-handlers-to-custom-hooks*/}
839839
840-
<<<<<<< HEAD
841-
<Canary>
842-
843-
**`useEffectEvent` API'si şu anda yalnızca React'in Canary ve Experimental kanallarında mevcuttur.**
844-
845-
[Learn more about React’s release channels here.](/community/versioning-policy#all-release-channels)
846-
847-
</Canary>
848-
849-
`useChatRoom`'u daha fazla bileşende kullanmaya başladıkça, bileşenlerin onun davranışını özelleştirmesine izin vermek isteyebilirsiniz. Örneğin, şu anda, bir mesaj geldiğinde ne yapılacağının mantığı Hook'un içine sabit kodlanmış durumda:
850-
=======
851-
As you start using `useChatRoom` in more components, you might want to let components customize its behavior. For example, currently, the logic for what to do when a message arrives is hardcoded inside the Hook:
852-
>>>>>>> 11cb6b591571caf5fa2a192117b6a6445c3f2027
840+
`useChatRoom`'u daha fazla component içinde kullanmaya başladığında, component'ların bu hook'un davranışını özelleştirmesine izin vermek isteyebilirsin. Örneğin, şu anda bir mesaj geldiğinde ne yapılacağına dair mantık Hook içinde sabit (hardcoded) durumda:
853841
854842
```js {9-11}
855843
export function useChatRoom({ serverUrl, roomId }) {

0 commit comments

Comments
 (0)