Produce Flame Cantrip as a readied or holding action?

PC states i am going to use a ready action to cast Produce Flame, and that they want to throw the flame when trigger happens, does the casting happen as a reaction, or do they need to wait their turn to attack as action on a later turn, They produced the flame to see on their turn.