React09 – Forms with components

Flutter-02 Explanation of the generated basic project

Project Structure:

You can see the following hierarchy: root > MyApp > MaterialApp > MyHomePage > Scaffold > Center, column, text, text, AppBar, Text, FloatinActionButton, Icon

[root]: This is the entry point for the Flutter application. Typically, in the main.dart file, you’ll find:

Flutter01-First project

Installation. Push «Get Started»

Follow the instructions to install Flutter with Visual Studio Code

main.dart:

Use the «flutter doctor» command to check if both the installation and configuration have been done correctly.

Use the «flutter doctor» command to check if both the installation and configuration have been done correctly.

React08 – Forms

Below is a simple example of using a React form:

App.jsx:

FormSubmitChange.jsx:

React07 – Lists

In React, you must define the key inside at least the «li» elements. This is done to make the Virtual DOM more efficient.

App.jsx

FruitList.jx

Each key must be unique

React conditionals

App.jsx:

Component.jsx:

TurnOff.jsx

TurnOn.jsx:

React05 – Events

main.jsx

App.jsx:

Component.jsx

Component.jsx

Component.jsx:

React04 – Props

A name will be passed to the HelloWorld component:

In order for the HelloWorld application to receive the passed value, the following changes will need to be made:

Your browser window will look like this:

First define the constant that will contain the values. Finally, this constant is passed through a parameter called info.

The receiver of the object will access its values as follows:

The result will be as follows:

Sometimes we are only interested in a few properties from all the ones sent to us.

App.jsx

HelloWorld.jsx

Another project is created

App.jsx

Parents.jsx

Son.jsx

Daughter.jsx

DBeaver

DBeaver is a multiple DBMS client included among other MySQL. Download: https://dbeaver.io/download/

Database > Driver Manager

Find MySQL

Database > New Database Connection

Select MySQL

Change the allowPublicKeyRetrieval parameter to false

In this example you are going to connect to a MySQL DBMS that is inside a Docker container. Here the important thing is the IP, user and password.

New SQL script to write SQL statements

Try running the following command using the play button

React03 – First component

A new project will be created:

It will then ask you for a proyect name . If you want, name it react03.

Inside the src folder, create the components folder. Then, create the HelloWorld.jsx file with the following contents:

The component that was just created will be used in the App.jsx file:

In your browser you will see the following screen:

The following structure remains in your project: