Melt butter in a 12-inch cast iron skillet over medium-high heat. Add diced onion and salt. Cook, stirring, until onions start to soften, and the edges begin to brown, 3 to 4 minutes. Add chicken, and cook, stirring, until the chicken loses its pink color, and starts to brown in spots, 3 to 4 minutes.