Преглед на файлове

Modify readme

Add clarification.
master
TheoryOfNekomata преди 1 година
родител
ревизия
a9caf5ffd1
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. +2
    -1
      README.md
  2. +1
    -0
      packages/iceform-next-sandbox/src/pages/greet.tsx

+ 2
- 1
README.md Целия файл

@@ -70,7 +70,7 @@ export const getServerSideProps = Iceform.action.getServerSideProps(greet);
```

Lastly, define the form page:
```tsx
```ts
// [src/]pages/form.tsx

import * as React from 'react';
@@ -85,6 +85,7 @@ const FormPage: Iceform.NextPage = ({

const [responseData, setResponseData] = React.useState<unknown>();
React.useEffect(() => {
// response.bodyUsed might be undefined, so we use a strict comparison
if (response?.bodyUsed === false) {
response?.json().then((responseData) => {
setResponseData(responseData);


+ 1
- 0
packages/iceform-next-sandbox/src/pages/greet.tsx Целия файл

@@ -9,6 +9,7 @@ const GreetPage: Iceform.NextPage = ({

const [responseData, setResponseData] = React.useState<unknown>();
React.useEffect(() => {
// response.bodyUsed might be undefined, so we use a strict comparison
if (response?.bodyUsed === false) {
response?.json().then((responseData) => {
setResponseData(responseData);


Зареждане…
Отказ
Запис