• Как лучше сделать валидацию сложных форм react-hook-form + yup?

    @mules
    React introduces JSX, a syntax extension for JavaScript that allows developers to write HTML-like code within JavaScript, making it more intuitive to create UI components. react-hook-form + yup forms by react js by full website you can visit it learn more by
    Here's a code snippet:
    def rezult_all_fight(jsonElements):
    value_games = jsonElements["Value"]["V"]
    for item in range(0, value_games):
    #Тут основная логика программы
    #...
    while True:
    rezult_all_fight(request_json())
    time.sleep(6)

    When the program starts, it runs for about 15 minutes and throws the error TypeError: 'NoneType' object is not subscriptable indicates value_games = jsonElements["Value"]["V"]. What could be the reason I can’t figure it out? The variable type int, the value is always there, the data is taken from json using a request to the server.
    Ответ написан
    Комментировать