Break It Up
Let’s break the codebase into smaller and understandable files.
We'll cover the following...
More Pythonic code
Now that we have a better understanding of how React works, let’s look at our previous react_hello
example. Let’s see if we can make our Python code a little more Pythonic by breaking out the JavaScript calls from the code and putting them into their module.
Separating JavaScript and Python
Let’s create a Python module specifically to map the JavaScript objects to Python objects. This will allow us to isolate the JavaScript portion from the ...