TypeScript
Every site is written in TypeScript
frascati writes your website in TypeScript: React components in .tsx files that a developer can read, check and extend. You can see and edit every file.
Why TypeScript
- TypeScript is JavaScript with types, made by Microsoft and released as open source in 2012
- Types describe what each component expects, which makes code easier to read and change
- Code editors use the types for autocomplete and to catch mistakes before the code runs
- A developer who takes over your site sees how its parts fit together
How frascati uses it
Every page and component is a .tsx file: TypeScript with JSX, the syntax React uses for markup. The preview compiles the TypeScript in your browser while frascati writes it. In the Code view you can read and edit each file, and with Pro and Business you can download the full source code, types included.
Questions
- Do I need to know TypeScript?
- No. You describe what you want in plain words. TypeScript only matters when you or a developer work on the code directly.
- Can a developer use the code in a TypeScript project?
- Yes. With Pro and Business you can download the full source code as .tsx files, which a developer can host or extend anywhere.
- What if I prefer plain JavaScript?
- TypeScript is JavaScript with types, so the logic reads the same. After downloading the source code, a developer can remove the types.
More of the stack
Your website, about two minutes from now
3 days free with a card, then from $12 a month. The plan starts automatically unless you cancel.