@djangoproject · Post #570 · 08.02.2018 г., 19:28
https://blog.cloudboost.io/react-redux-webpack-3-django-nov-2017-53a09d09cf75 #React + #Redux + Webpack 3 + #Django (Nov 2017)
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #418 · 9 мар.
Оператор pipe позволяет писать более компактный код, реализуя логику объединения данных (Union). Важно помнить, что его поведение зависит от контекста. Побитовые операции (логическое OR) result = 5 | 3 # 5 (0101) | 3 (0011) = 7 (0111) Самое главное - не путать с оператором or, это другое! Объединение множеств set_a = {1, 2, 3} set_b = {3, 4, 5} set_c = set_a | set_b # {1, 2, 3, 4, 5} set_c |= {5, 6} # {1, 2, 3, 4, 5, 6} Слияние словарей dict_1 = {"a": 1, "b": 2} dict_2 = {"b": 3, "c": 4} merged = dict_1 | dict_2 # {'a': 1, 'b': 3, 'c': 4} merged |= {"d": 5} # {'a': 1, 'b': 3, 'c': 4, 'd': 5} Аннотации типов, заменяет Union def process_data(value: int | str) -> None: print(value) Допустимо использовать в isinstance или issubclass isinstance(3, int | float) # True Паттерн-матчинг status_code = 404 match status_code: case 200 | 201 | 204: print("OK") case 400 | 404 | 500: print("ERROR") Для использования в своих классах требуется переопределить метод __or__ Так же нашел библиотеку pipe которая добавляет еще много возможностей. Рекомендую ознакомиться ;) #basic
Hashtags
Пребарај: #redux
@djangoproject · Post #570 · 08.02.2018 г., 19:28
https://blog.cloudboost.io/react-redux-webpack-3-django-nov-2017-53a09d09cf75 #React + #Redux + Webpack 3 + #Django (Nov 2017)
@djangoproject · Post #567 · 01.02.2018 г., 10:59
https://hackernoon.com/shape-your-redux-store-like-your-database-98faa4754fd5 Using the #Redux Store Like a Database #React #Django
@thedevs · Post #1179 · 21.07.2018 г., 19:00
What Is Redux: a designer’s guide. #article#tutorial#redux#design#js @thedevs https://kutt.it/DNkfgP
@thedevs · Post #1234 · 30.09.2018 г., 09:53
Immutability in React and Redux: the complete guide. #article#tutorial#js#react#redux @thedevs https://kutt.it/DKHpWD
@thedevs · Post #1163 · 04.07.2018 г., 18:34
Understanding Redux: the world’s easiest guide to beginning Redux. #article#tutorial#react#redux#js @thedevs https://kutt.it/N81D6p
@githubtrending · Post #15034 · 07.08.2025 г., 11:30
#javascript#antd#music#music_player#nodejs#react#react_router#redux#webapp#webpack Copper Bell is a free website app focused on listening to music. It offers many songs and has a simple, clean design that makes it easy to find and play your favorite music. You can search for songs, make playlists, read scrolling lyrics, save songs, and create your own song lists. It does not have live broadcasts, social features, or ads, so there are no distractions and you get a pure music experience. You can use it on any modern web browser without installing anything. It works on many devices, including tablets. This way, you can enjoy music, manage your songs, and discover new tunes easily anytime and anywhere. https://github.com/enzeberg/tonzhon-music