DEV Community

Discussion on: Create A Custom Hook In React

Collapse
lukeshiru profile image
LUKESHIRU

Dev.to 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
Collapse
barnabas19 profile image
Barnabas Babatunde Author

Thanks a lot. I will do that next time.