Edited, memorised or added to reading queue

on 26-Nov-2023 (Sun)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Flashcard 7600893988108

Tags
#Clinique #Maladies-infectieuses-et-tropicales #Syphilis
Question

Syphilis primaire

CMF
Le chancre syphilitique d’inoculation : c’est une érosion
[douleur ?], localisée surtout à
[...] ou à [...] , propre et [aspect?] limitée, à bord [...] avec, quelquefois, un [peau péri-lésionnelle ?]

Answer

  • INDOLORE
  • Localisée surtout à la LÈVRE ou à la LANGUE
  • PROPRE et BIEN limitée
  • Bord RÉGULIER avec, quelquefois, un HALO ERYTHÉMATEUX.

Syphilis PRIMAIRE

Attention, parfois multiples chancres (gorge, anus, verge, vagin, col utérus, ...)


statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Parent (intermediate) annotation

Open it
Syphilis primaire Le chancre syphilitique d’inoculation apparaît trois semaines après le contage : c’est une érosion indolore, localisée surtout à la lèvre ou à la langue, propre et bien limitée, à bord régulier avec, quelquefois, un halo érythémateux. Le fond est plat et lisse, avec un exsudat gris (fourmilla

Original toplevel document (pdf)

cannot see any pdfs







对自动控制系统的基本要求
自动控制理论是研究自动控制共同规律的一门学科。尽管自动控制系统有不同的类型,对每个系统也都有不同的特殊要求,但对于各类系统来说,在已知系统的结构和参数时,我们感兴趣的都是系统在某种典型输入信号下,其被控量变化的全过程。例如,对恒值控制系统是研究扰动作用引起被控量变化的全过程;对随动系统是研究被控量如何克服扰动影响并跟随输入量的变化全过程。但是,对每一类系统被控量变化全过程提出的共同基本要求都是一样的,且可以归结为稳定性、快速性和准确性,即稳、准、快的要求
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on




Flashcard 7601184705804

Question
自动控制理论是研究自动控制共同规律的一门学科。尽管自动控制系统有不同的类型,对每个系统也都有不同的特殊要求,但对于各类系统来说,在已知系统的结构和参数时,我们感兴趣的都是[...]。例如,对恒值控制系统是研究扰动作用引起被控量变化的全过程;对随动系统是研究被控量如何克服扰动影响并跟随输入量的变化全过程。但是,对每一类系统被控量变化全过程提出的共同基本要求都是一样的,且可以归结为稳定性、快速性和准确性,即稳、准、快的要求
Answer
系统在某种典型输入信号下,其被控量变化的全过程

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

对自动控制系统的基本要求
自动控制理论是研究自动控制共同规律的一门学科。尽管自动控制系统有不同的类型,对每个系统也都有不同的特殊要求,但对于各类系统来说,在已知系统的结构和参数时,我们感兴趣的都是系统在某种典型输入信号下,其被控量变化的全过程。例如,对恒值控制系统是研究扰动作用引起被控量变化的全过程;对随动系统是研究被控量如何克服扰动影响并跟随输入量的变化全过程。但是,对每一类系统被控量变化全过程提出的共同基本要求都是一样的,且可以归结为稳定性、快速性和准确性,即稳、准、快的要求







Flashcard 7601186278668

Question
自动控制理论是研究自动控制共同规律的一门学科。尽管自动控制系统有不同的类型,对每个系统也都有不同的特殊要求,但对于各类系统来说,在已知系统的结构和参数时,我们感兴趣的都是系统在某种典型输入信号下,其被控量变化的全过程。例如,对恒值控制系统是研究扰动作用引起被控量变化的全过程;对随动系统是研究被控量如何克服扰动影响并跟随输入量的变化全过程。但是,对每一类系统被控量变化全过程提出的共同基本要求都是一样的,且可以归结为[...]
Answer
稳定性、快速性和准确性,即稳、准、快的要求

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

对自动控制系统的基本要求
同规律的一门学科。尽管自动控制系统有不同的类型,对每个系统也都有不同的特殊要求,但对于各类系统来说,在已知系统的结构和参数时,我们感兴趣的都是系统在某种典型输入信号下,其被控量变化的全过程。例如,对恒值控制系统是研究扰动作用引起被控量变化的全过程;对随动系统是研究被控量如何克服扰动影响并跟随输入量的变化全过程。但是,对每一类系统被控量变化全过程提出的共同基本要求都是一样的,且可以归结为<span>稳定性、快速性和准确性,即稳、准、快的要求 <span>







Preface (whole section)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Part I. Tutorial (whole section)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Part II. The SQL Language (whole language)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Part III. Server Administration (whole section)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Part IV. Client Interfaces (whole section)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Part V. Server Programming (whole section)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Part VI. Reference (whole section)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Part VII. Internals (whole section)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Part VIII. Appendixes (whole section)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Bibliography (whole section)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Index (whole section)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

pdf

cannot see any pdfs




Go programs are organized into packages
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

How to Write Go Code - The Go Programming Language
monstrates the development of a simple Go package inside a module and introduces the go tool, the standard way to fetch, build, and install Go modules, packages, and commands. Code organization <span>Go programs are organized into packages. A package is a collection of source files in the same directory that are compiled together. Functions, types, variables, and constants defined in one source file are visible to all oth




A package is a collection of source files in the same directory that are compiled together.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

How to Write Go Code - The Go Programming Language
package inside a module and introduces the go tool, the standard way to fetch, build, and install Go modules, packages, and commands. Code organization Go programs are organized into packages. <span>A package is a collection of source files in the same directory that are compiled together. Functions, types, variables, and constants defined in one source file are visible to all other source files within the same package. A repository contains one or more modules. A module




Functions, types, variables, and constants defined in one source file are visible to all other source files within the same package.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

How to Write Go Code - The Go Programming Language
nstall Go modules, packages, and commands. Code organization Go programs are organized into packages. A package is a collection of source files in the same directory that are compiled together. <span>Functions, types, variables, and constants defined in one source file are visible to all other source files within the same package. A repository contains one or more modules. A module is a collection of related Go packages that are released together. A Go repository typically contains only one module, located at the




A repository contains one or more modules, but typically contains only one module, located at the root of the respository.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

How to Write Go Code - The Go Programming Language
urce files in the same directory that are compiled together. Functions, types, variables, and constants defined in one source file are visible to all other source files within the same package. <span>A repository contains one or more modules. A module is a collection of related Go packages that are released together. A Go repository typically contains only one module, located at the root of the repository. A file named go.mo




A module is a collection of related Go packages that are released together.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

How to Write Go Code - The Go Programming Language
ompiled together. Functions, types, variables, and constants defined in one source file are visible to all other source files within the same package. A repository contains one or more modules. <span>A module is a collection of related Go packages that are released together. A Go repository typically contains only one module, located at the root of the repository. A file named go.mod there declares the module path: the import path prefix for all packages wi




A file named go.mod at the root of the module declares the module path : the import path prefix for all packages within the module.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

How to Write Go Code - The Go Programming Language
tains one or more modules. A module is a collection of related Go packages that are released together. A Go repository typically contains only one module, located at the root of the repository. <span>A file named go.mod there declares the module path: the import path prefix for all packages within the module. The module contains the packages in the directory containing its go.mod file as well as subdirectories of that directory, up to the next subdirectory containing another go.mod file (if




The module contains the packages in the directory containing its go.mod file as well as subdirectories of that directory, up to the next subdirectory containing another go.mod file (if any).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

How to Write Go Code - The Go Programming Language
ository typically contains only one module, located at the root of the repository. A file named go.mod there declares the module path: the import path prefix for all packages within the module. <span>The module contains the packages in the directory containing its go.mod file as well as subdirectories of that directory, up to the next subdirectory containing another go.mod file (if any). Note that you don't need to publish your code to a remote repository before you can build it. A module can be defined locally without belonging to a repository. However, it's a good hab




An import path is a string used to import a package. A package's import path is its module path joined with its subdirectory within the module. For example, the module github.com/google/go-cmp contains a package in the directory cmp/. That package's import path is github.com/google/go-cmp/cmp. Packages in the standard library do not have a module path prefix.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

How to Write Go Code - The Go Programming Language
look to download it. For example, in order to download the module golang.org/x/tools, the go command would consult the repository indicated by https://golang.org/x/tools (described more here). <span>An import path is a string used to import a package. A package's import path is its module path joined with its subdirectory within the module. For example, the module github.com/google/go-cmp contains a package in the directory cmp/. That package's import path is github.com/google/go-cmp/cmp. Packages in the standard library do not have a module path prefix. Your first program To compile and run a simple program, first choose a module path (we'll use example/user/hello) and create a go.mod file that declares it: $ mkdir hello # Alternativel




React apps are made out of components. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
add markup and styles How to display data How to render conditions and lists How to respond to events and update the screen How to share data between components Creating and nesting components <span>React apps are made out of components. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page. React components are JavaScript functions that return markup: function MyButton() { return ( <button>I'm a button</button> ); } Now that you’ve declared MyButton, you can ne




React components are JavaScript functions that return markup:

 function MyButton ( ) { 
return (
< button > I'm a button </ button >
) ;
}
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
apps are made out of components. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page. <span>React components are JavaScript functions that return markup: function MyButton() { return ( <button>I'm a button</button> ); } Now that you’ve declared MyButton, you can nest it into another component: export default function MyApp() { return ( <div> <h1>Welcome to my app</h1> <MyButton /&g




React component names must always start with a capital letter, while HTML tags must be lowercase.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
<div> <h1>Welcome to my app</h1> <MyButton /> </div> ); } Notice that <MyButton /> starts with a capital letter. That’s how you know it’s a React component. <span>React component names must always start with a capital letter, while HTML tags must be lowercase. Have a look at the result: App.js App.js Download Reset Fork 99 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 function MyButton() { return ( <button> I'm a button </button> ); }




Now that you’ve declared MyButton, you can nest it into another component:

 export default function MyApp ( ) { 
return (
< div >
< h1 > Welcome to my app </ h1 >
< MyButton />
</ div >
) ;
}
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
as small as a button, or as large as an entire page. React components are JavaScript functions that return markup: function MyButton() { return ( <button>I'm a button</button> ); } <span>Now that you’ve declared MyButton, you can nest it into another component: export default function MyApp() { return ( <div> <h1>Welcome to my app</h1> <MyButton /> </div> ); } Notice that <MyButton /> starts with a capital letter. That’s how you know it’s a React component. React component names must always start with a capital letter, while HTML tags m




The export default keywords specify the main component in the file.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
t;button> I'm not a button </button> ); } export default function MyApp() { return ( <div> <h1>Welcome to my world</h1> <MyButton /> </div> ); } Show more <span>The export default keywords specify the main component in the file. If you’re not familiar with some piece of JavaScript syntax, MDN and javascript.info have great references. Writing markup with JSX The markup syntax you’ve seen above is called JSX. It




If you’re not familiar with some piece of JavaScript syntax, MDN and javascript.info have great references.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
nction MyApp() { return ( <div> <h1>Welcome to my world</h1> <MyButton /> </div> ); } Show more The export default keywords specify the main component in the file. <span>If you’re not familiar with some piece of JavaScript syntax, MDN and javascript.info have great references. Writing markup with JSX The markup syntax you’ve seen above is called JSX. It is optional, but most React projects use JSX for its convenience. All of the tools we recommend for local d




The markup syntax you’ve seen above is called JSX. It is optional, but most React projects use JSX for its convenience. All of the tools we recommend for local development support JSX out of the box.

JSX is stricter than HTML. You have to close tags like <br />. Your component also can’t return multiple JSX tags. You have to wrap them into a shared parent, like a <div>...</div> or an empty <>...</> wrapper

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
port default keywords specify the main component in the file. If you’re not familiar with some piece of JavaScript syntax, MDN and javascript.info have great references. Writing markup with JSX <span>The markup syntax you’ve seen above is called JSX. It is optional, but most React projects use JSX for its convenience. All of the tools we recommend for local development support JSX out of the box. JSX is stricter than HTML. You have to close tags like <br />. Your component also can’t return multiple JSX tags. You have to wrap them into a shared parent, like a <div>...</div> or an empty <>...</> wrapper: function AboutPage() { return ( <> <h1>About</h1> <p>Hello there.<br />How do you do?</p> </> ); } If you have a lot of HTML to port to JSX, y




If you have a lot of HTML to port to JSX, you can use an online converter.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
t;/div> or an empty <>...</> wrapper: function AboutPage() { return ( <> <h1>About</h1> <p>Hello there.<br />How do you do?</p> </> ); } <span>If you have a lot of HTML to port to JSX, you can use an online converter. Adding styles In React, you specify a CSS class with className. It works the same way as the HTML class attribute: <img className="avatar" /> Then you write the CSS rules for it i




In React, you specify a CSS class with className. It works the same way as the HTML class attribute:

 < img className = "avatar" /> 
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
> <h1>About</h1> <p>Hello there.<br />How do you do?</p> </> ); } If you have a lot of HTML to port to JSX, you can use an online converter. Adding styles <span>In React, you specify a CSS class with className. It works the same way as the HTML class attribute: <img className="avatar" /> Then you write the CSS rules for it in a separate CSS file: /* In your CSS */ .avatar { border-radius: 50%; } React does not prescribe how you add CSS files. In the simplest case, you’l




React does not prescribe how you add CSS files. In the simplest case, you’ll add a <link> tag to your HTML. If you use a build tool or a framework, consult its documentation to learn how to add a CSS file to your project.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
It works the same way as the HTML class attribute: <img className="avatar" /> Then you write the CSS rules for it in a separate CSS file: /* In your CSS */ .avatar { border-radius: 50%; } <span>React does not prescribe how you add CSS files. In the simplest case, you’ll add a <link> tag to your HTML. If you use a build tool or a framework, consult its documentation to learn how to add a CSS file to your project. Displaying data JSX lets you put markup into JavaScript. Curly braces let you “escape back” into JavaScript so that you can embed some variable from your code and display it to the user




JSX lets you put markup into JavaScript. Curly braces let you “escape back” into JavaScript so that you can embed some variable from your code and display it to the user. For example, this will display user.name:

 return ( 
< h1 >
{ user . name }
</ h1 >
) ;

You can also “escape into JavaScript” from JSX attributes, but you have to use curly braces instead of quotes. For example, className="avatar" passes the "avatar" string as the CSS class, but src={user.imageUrl} reads the JavaScript user.imageUrl variable value, and then passes that value as the src attribute:

 return ( 
< img
className = "avatar"
src = { user . imageUrl }
/>
) ;
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
the simplest case, you’ll add a <link> tag to your HTML. If you use a build tool or a framework, consult its documentation to learn how to add a CSS file to your project. Displaying data <span>JSX lets you put markup into JavaScript. Curly braces let you “escape back” into JavaScript so that you can embed some variable from your code and display it to the user. For example, this will display user.name: return ( <h1> {user.name} </h1> ); You can also “escape into JavaScript” from JSX attributes, but you have to use curly braces instead of quotes. For example, className="avatar" passes the "avatar" string as the CSS class, but src={user.imageUrl} reads the JavaScript user.imageUrl variable value, and then passes that value as the src attribute: return ( <img className="avatar" src={user.imageUrl} /> ); You can put more complex expressions inside the JSX curly braces too, for example, string concatenation: App.js App.js Download Reset Fork 99 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1




const user = { name : 'Hedy Lamarr' , imageUrl : 'https://i.imgur.com/yXOvdOSs.jpg' , imageSize : 90 , } ;
export default function Profile ( ) { return ( < > < h1 > { user . name } </ h1 > < img className = "avatar" src = { user . imageUrl } alt = { 'Photo of ' + user . name } style = { { width : user . imageSize , height : user . imageSize } } /> </ > ) ; }
Show more

In the above example, style={{}} is not a special syntax, but a regular {} object inside the style={ } JSX curly braces. You can use the style attribute when your styles depend on JavaScript variables.

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
e src attribute: return ( <img className="avatar" src={user.imageUrl} /> ); You can put more complex expressions inside the JSX curly braces too, for example, string concatenation: App.js <span>App.js Download Reset Fork 99 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 const user = { name: 'Hedy Lamarr', imageUrl: 'https://i.imgur.com/yXOvdOSs.jpg', imageSize: 90, }; export default function Profile() { return ( <> <h1>{user.name}</h1> <img className="avatar" src={user.imageUrl} alt={'Photo of ' + user.name} style={{ width: user.imageSize, height: user.imageSize }} /> </> ); } Show more In the above example, style={{}} is not a special syntax, but a regular {} object inside the style={ } JSX curly braces. You can use the style attribute when your styles depend on JavaScript variables. Conditional rendering In React, there is no special syntax for writing conditions. Instead, you’ll use the same techniques as you use when writing regular JavaScript code. For example,




Conditional rendering

In React, there is no special syntax for writing conditions. Instead, you’ll use the same techniques as you use when writing regular JavaScript code. For example, you can use an if statement to conditionally include JSX:

 let content ; 
if ( isLoggedIn ) {
content = < AdminPanel /> ;
} else {
content = < LoginForm /> ;
}
return (
< div >
{ content }
</ div >
) ;

If you prefer more compact code, you can use the conditional ? operator. Unlike if, it works inside JSX:

 < div > 
{ isLoggedIn ? (
< AdminPanel />
) : (
< LoginForm />
) }
</ div >

When you don’t need the else branch, you can also use a shorter logical && syntax:

 < div > 
{ isLoggedIn && < AdminPanel /> }
</ div >

All of these approaches also work for conditionally specifying attributes. If you’re unfamiliar with some of this JavaScript syntax, you can start by always using if...else.

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
bove example, style={{}} is not a special syntax, but a regular {} object inside the style={ } JSX curly braces. You can use the style attribute when your styles depend on JavaScript variables. <span>Conditional rendering In React, there is no special syntax for writing conditions. Instead, you’ll use the same techniques as you use when writing regular JavaScript code. For example, you can use an if statement to conditionally include JSX: let content; if (isLoggedIn) { content = <AdminPanel />; } else { content = <LoginForm />; } return ( <div> {content} </div> ); If you prefer more compact code, you can use the conditional ? operator. Unlike if, it works inside JSX: <div> {isLoggedIn ? ( <AdminPanel /> ) : ( <LoginForm /> )} </div> When you don’t need the else branch, you can also use a shorter logical && syntax: <div> {isLoggedIn && <AdminPanel />} </div> All of these approaches also work for conditionally specifying attributes. If you’re unfamiliar with some of this JavaScript syntax, you can start by always using if...else. Rendering lists You will rely on JavaScript features like for loop and the array map() function to render lists of components. For example, let’s say you have an array of products: cons




You will rely on JavaScript features like for loop and the array map() function to render lists of components.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
gt; All of these approaches also work for conditionally specifying attributes. If you’re unfamiliar with some of this JavaScript syntax, you can start by always using if...else. Rendering lists <span>You will rely on JavaScript features like for loop and the array map() function to render lists of components. For example, let’s say you have an array of products: const products = [ { title: 'Cabbage', id: 1 }, { title: 'Garlic', id: 2 }, { title: 'Apple', id: 3 }, ]; Inside your component, us




 const listItems = products . map ( product => 
< li key = { product . id } >
{ product . title }
</ li >
) ;

return (
< ul > { listItems } </ ul >
) ;

Notice how <li> has a key attribute. For each item in a list, you should pass a string or a number that uniquely identifies that item among its siblings. Usually, a key should be coming from your data, such as a database ID. React uses your keys to know what happened if you later insert, delete, or reorder the items.

App.js
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
'Cabbage', id: 1 }, { title: 'Garlic', id: 2 }, { title: 'Apple', id: 3 }, ]; Inside your component, use the map() function to transform an array of products into an array of <li> items: <span>const listItems = products.map(product => <li key={product.id}> {product.title} </li> ); return ( <ul>{listItems}</ul> ); Notice how <li> has a key attribute. For each item in a list, you should pass a string or a number that uniquely identifies that item among its siblings. Usually, a key should be coming from your data, such as a database ID. React uses your keys to know what happened if you later insert, delete, or reorder the items. App.js App.js Download Reset Fork 99 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 const products = [ { title: 'Cabbage', isFruit: false, id: 1 }, { title: 'Garlic', isFruit: fal




Responding to events

You can respond to events by declaring event handler functions inside your components:

 function MyButton ( ) { 
function handleClick ( ) {
alert ( 'You clicked me!' ) ;
}

return (
< button onClick = { handleClick } >
Click me
</ button >
) ;
}

Notice how onClick={handleClick} has no parentheses at the end! Do not call the event handler function: you only need to pass it down. React will call your event handler when the user clicks the button.

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
p(product => <li key={product.id} style={{ color: product.isFruit ? 'magenta' : 'darkgreen' }} > {product.title} </li> ); return ( <ul>{listItems}</ul> ); } Show more <span>Responding to events You can respond to events by declaring event handler functions inside your components: function MyButton() { function handleClick() { alert('You clicked me!'); } return ( <button onClick={handleClick}> Click me </button> ); } Notice how onClick={handleClick} has no parentheses at the end! Do not call the event handler function: you only need to pass it down. React will call your event handler when the user clicks the button. Updating the screen Often, you’ll want your component to “remember” some information and display it. For example, maybe you want to count the number of times a button is clicked. To do




Updating the screen

Often, you’ll want your component to “remember” some information and display it. For example, maybe you want to count the number of times a button is clicked. To do this, add state to your component.

First, import useState from React:

 import { useState } from 'react' ; 

Now you can declare a state variable inside your component:

 function MyButton ( ) { 
const [ count , setCount ] = useState ( 0 ) ;
// ...

You’ll get two things from useState: the current state (count), and the function that lets you update it (setCount). You can give them any names, but the convention is to write [something, setSomething].

The first time the button is displayed, count will be 0 because you passed 0 to useState(). When you want to change state, call setCount() and pass the new value to it. Clicking this button will increment the counter:

 function MyButton ( ) { 
const [ count , setCount ] = useState ( 0 ) ;

function handleClick ( ) {
setCount ( count + 1 ) ;
}

return (
< button onClick = { handleClick } >
Clicked { count } times
</ button >
) ;
}

React will call your component function again. This time, count will be 1. Then it will be 2. And so on.

If you render the same c

...
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Quick Start – React
w onClick={handleClick} has no parentheses at the end! Do not call the event handler function: you only need to pass it down. React will call your event handler when the user clicks the button. <span>Updating the screen Often, you’ll want your component to “remember” some information and display it. For example, maybe you want to count the number of times a button is clicked. To do this, add state to your component. First, import useState from React: import { useState } from 'react'; Now you can declare a state variable inside your component: function MyButton() { const [count, setCount] = useState(0); // ... You’ll get two things from useState: the current state (count), and the function that lets you update it (setCount). You can give them any names, but the convention is to write [something, setSomething]. The first time the button is displayed, count will be 0 because you passed 0 to useState(). When you want to change state, call setCount() and pass the new value to it. Clicking this button will increment the counter: function MyButton() { const [count, setCount] = useState(0); function handleClick() { setCount(count + 1); } return ( <button onClick={handleClick}> Clicked {count} times </button> ); } React will call your component function again. This time, count will be 1. Then it will be 2. And so on. If you render the same component multiple times, each will get its own state. Click each button separately: App.js App.js Download Reset Fork 99 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 import { useState } from 'react'; export default function MyApp() { return ( <div> <h1>Counters that update separately</h1> <MyButton /> <MyButton /> </div> ); } function MyButton() { const [count, setCount] = useState(0); function handleClick() { setCount(count + 1); } return ( <button onClick={handleClick}> Clicked {count} times </button> ); } Show more Notice how each button “remembers” its own count state and doesn’t affect other buttons. Using Hooks Functions starting with use are called Hooks. useState is a built-in Hook provided by React. You can find other built-in Hooks in the API reference. You can also write your




The most popular text editors for Go are VSCode (free), GoLand (paid), and Vim (free).
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Tutorial: Get started with Go - The Go Programming Language
e. The code here is pretty simple, but it helps to know something about functions. A tool to edit your code. Any text editor you have will work fine. Most text editors have good support for Go. <span>The most popular are VSCode (free), GoLand (paid), and Vim (free). A command terminal. Go works well using any terminal on Linux and Mac, and on PowerShell or cmd in Windows. Install Go Just use the Download and install steps. Write some code Get start




Enable dependency tracking for your code.

When your code imports packages contained in other modules, you manage those dependencies through your code's own module. That module is defined by a go.mod file that tracks the modules that provide those packages. That go.mod file stays with your code, including in your source code repository.

To enable dependency tracking for your code by creating a go.mod file, run the go mod init command, giving it the name of the module your code will be in. The name is the module's module path.

In actual development, the module path will typically be the repository location where your source code will be kept. For example, the module path might be github.com/mymodule. If you plan to publish your module for others to use, the module path must be a location from which Go tools can download your module. For more about naming a module with a module path, see Managing dependencies.

For the purposes of this tutorial, just use example/hello.

$ go mod init example/hello
go: creating new go.mod: module example/hello
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Tutorial: Get started with Go - The Go Programming Language
nd cd to your home directory. On Linux or Mac: cd On Windows: cd %HOMEPATH% Create a hello directory for your first Go source code. For example, use the following commands: mkdir hello cd hello <span>Enable dependency tracking for your code. When your code imports packages contained in other modules, you manage those dependencies through your code's own module. That module is defined by a go.mod file that tracks the modules that provide those packages. That go.mod file stays with your code, including in your source code repository. To enable dependency tracking for your code by creating a go.mod file, run the go mod init command, giving it the name of the module your code will be in. The name is the module's module path. In actual development, the module path will typically be the repository location where your source code will be kept. For example, the module path might be github.com/mymodule. If you plan to publish your module for others to use, the module path must be a location from which Go tools can download your module. For more about naming a module with a module path, see Managing dependencies. For the purposes of this tutorial, just use example/hello. $ go mod init example/hello go: creating new go.mod: module example/hello In your text editor, create a file hello.go in which to write your code. Paste the following code into your hello.go file and save the file. package main import "fmt" func main() { fmt.




The go run command is one of many go commands you'll use to get things done with Go. Use the following command to get a list of the others:

$ go help
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Tutorial: Get started with Go - The Go Programming Language
d Go. Implement a main function to print a message to the console. A main function executes by default when you run the main package. Run your code to see the greeting. $ go run . Hello, World! <span>The go run command is one of many go commands you'll use to get things done with Go. Use the following command to get a list of the others: $ go help Call code in an external package When you need your code to do something that might have been implemented by someone else, you can look for a package that has functions you can use in y




Go will add the quote module as a requirement, as well as a go.sum file for use in authenticating the module. For more, see Authenticating modules in the Go Modules Reference.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Tutorial: Get started with Go - The Go Programming Language
ding the highlighted lines, your code should include the following: package main import "fmt" import "rsc.io/quote" func main() { fmt.Println(quote.Go()) } Add new module requirements and sums. <span>Go will add the quote module as a requirement, as well as a go.sum file for use in authenticating the module. For more, see Authenticating modules in the Go Modules Reference. $ go mod tidy go: finding module for package rsc.io/quote go: found rsc.io/quote in rsc.io/quote v1.5.2 Run your code to see the message generated by the function you're calling. $ go r




React (whole document)
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

React Reference Overview – React
d reference documentation for working with React. For an introduction to React, please visit the Learn section. Our The React reference documentation is broken down into functional subsections: <span>React Programmatic React features: Hooks - Use different React features from your components. Components - Documents built-in components that you can use in your JSX. APIs - APIs that are use




React

Programmatic React features:

  • Hooks - Use different React features from your components.
  • Components - Documents built-in components that you can use in your JSX.
  • APIs - APIs that are useful for defining components.
  • Directives - Provide instructions to bundlers compatible with React Server Components.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

React Reference Overview – React
d reference documentation for working with React. For an introduction to React, please visit the Learn section. Our The React reference documentation is broken down into functional subsections: <span>React Programmatic React features: Hooks - Use different React features from your components. Components - Documents built-in components that you can use in your JSX. APIs - APIs that are useful for defining components. Directives - Provide instructions to bundlers compatible with React Server Components. React DOM React-dom contains features that are only supported for web applications (which run in the browser DOM environment). This section is broken into the following: Hooks - Hooks f




React DOM

React-dom contains features that are only supported for web applications (which run in the browser DOM environment). This section is broken into the following:

  • Hooks - Hooks for web applications which run in the browser DOM environment.
  • Components - React supports all of the browser built-in HTML and SVG components.
  • APIs - The react-dom package contains methods supported only in web applications.
  • Client APIs - The react-dom/client APIs let you render React components on the client (in the browser).
  • Server APIs - The react-dom/server APIs let you render React components to HTML on the server.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

React Reference Overview – React
nts built-in components that you can use in your JSX. APIs - APIs that are useful for defining components. Directives - Provide instructions to bundlers compatible with React Server Components. <span>React DOM React-dom contains features that are only supported for web applications (which run in the browser DOM environment). This section is broken into the following: Hooks - Hooks for web applications which run in the browser DOM environment. Components - React supports all of the browser built-in HTML and SVG components. APIs - The react-dom package contains methods supported only in web applications. Client APIs - The react-dom/client APIs let you render React components on the client (in the browser). Server APIs - The react-dom/server APIs let you render React components to HTML on the server. Legacy APIs Legacy APIs - Exported from the react package, but not recommended for use in newly written code. How do you like these docs? Take our survey! ©2023 Learn React Quick Start




Legacy APIs
  • Legacy APIs - Exported from the react package, but not recommended for use in newly written code.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

React Reference Overview – React
t APIs - The react-dom/client APIs let you render React components on the client (in the browser). Server APIs - The react-dom/server APIs let you render React components to HTML on the server. <span>Legacy APIs Legacy APIs - Exported from the react package, but not recommended for use in newly written code. How do you like these docs? Take our survey! ©2023 Learn React Quick Start Installation Describing the UI Adding Interactivity Managing State Escape Hatches API Reference React APIs Rea




This document gives tips for writing clear, idiomatic Go code. It augments the language specification, the Tour of Go, and How to Write Go Code, all of which you should read first.
statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Effective Go - The Go Programming Language
w the established conventions for programming in Go, such as naming, formatting, program construction, and so on, so that programs you write will be easy for other Go programmers to understand. <span>This document gives tips for writing clear, idiomatic Go code. It augments the language specification, the Tour of Go, and How to Write Go Code, all of which you should read first. Note added January, 2022: This document was written for Go's release in 2009, and has not been updated significantly since. Although it is a good guide to understand how to use the lang