feat: support JSX automatic mode (#610)
This commit adds support for JSX automatic mode instead of the default mode that requires the presence of the JSX pragma in each file. This commit also adds the config file to the `fresh.gen.ts` manifest, which is used to determine if the client emit should use automatic mode. The minimum Deno version has also been bumped to 1.25.0.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
/** @jsx h */
|
||||
import { h } from "preact";
|
||||
import { JSX } from "preact";
|
||||
|
||||
export function RoundedButton(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
|
||||
export function RoundedButton(props: JSX.HTMLAttributes<HTMLButtonElement>) {
|
||||
return (
|
||||
<button
|
||||
style={{
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/** @jsx h */
|
||||
import { h } from "preact";
|
||||
|
||||
import {
|
||||
CATEGORIES,
|
||||
TableOfContentsCategory,
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/** @jsx h */
|
||||
import { h } from "preact";
|
||||
|
||||
export function NoBuild() {
|
||||
return (
|
||||
<svg
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/** @jsx h */
|
||||
import { h } from "preact";
|
||||
|
||||
const LINKS = [
|
||||
{
|
||||
title: "Source",
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/** @jsx h */
|
||||
import { h } from "preact";
|
||||
|
||||
export function IconMinus() {
|
||||
return (
|
||||
<svg
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/** @jsx h */
|
||||
import { h } from "preact";
|
||||
|
||||
export default function NavigationBar(props: { active: string }) {
|
||||
const items = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user