// WithReactBuild replaces default version of `graphql-playground-react` components with given one.
// Check https://www.jsdelivr.com/package/npm/graphql-playground-react for available versions.
WithReactBuild replaces default version of `graphql-playground-react` components with given one.
// WithReactBuild replaces default version of ` graphql - playground - react ` components with given one . // Check https : // www . jsdelivr . com / package / npm / graphql - playground - react for available versions .
func WithReactBuild(version string) Option {
	if version != "" && !strings.HasPrefix(version, "@") {
		version = "@" + version
	}
	return func(s *settings) {
		s.ReactBuild = version
	}
}
func WithReactBuild ( version string ) Option { if version != " " && ! strings . HasPrefix ( version , " " ) { version = " " + version } return func ( s * settings ) { s . ReactBuild = version } }
WithReactBuild replaces default version of `graphql-playground-react` components with given one.
WithReactBuild replaces default version of ` graphql - playground - react ` components with given one .