A sample code for using typescript with generic react components
to make a dynamic formula generator with contants, arguments and logical gates (and, or, ...)
- Arguments: named variables you can define them in global scope to reuse in your formula.
- Contants: any boolean value you can set inside your formula.
- Logical gates: some predefined functions to use as logical operators inside your formula.
- AND: The AND gate is a basic digital logic gate that implements logical conjunction (∧) from mathematical logic. wikipedia
- OR: it performs a logical disjunction (∨) from mathematical logic. wikipedia
- XOR: implements an exclusive or ({\displaystyle \nleftrightarrow }\nleftrightarrow) from mathematical logic. wikipedia
- NOT: which implements logical negation. wikipedia
- NAND gate
- NOR gate
- XNOR gate
- IMPLY gate
- clone code into your machine
- install dependancies:
yarn
- start app in
development
mode
yarn start