Implement erc20 in erc721 as reward for successful mint

I want to implement erc20 transfer function in erc721 so when a successful mint happens in erc721 minter will get some erc20 token as well any help will ve appreciated thanks.

:1234: Code to reproduce


:computer: Environment

Remix

This is an overly broad question for a very simple problem. Please give it a shot. If you get blocked by any specific issues feel free to ask about them.