DEV Community

Discussion on: Create A Custom Hook In React

lukeshiru profile image
LUKESHIRU tip: If you put the language next to the triple quote in the code blocks, you get syntax highlight. So it will look something like this if you put jsx next to the triple quote:

const Component = props => <div {...props} />
Enter fullscreen mode Exit fullscreen mode
barnabas19 profile image
Barnabas Babatunde Author

Thanks a lot. I will do that next time.