scripting errors

i made this script

var nxtlvl : boolean = false;



React ();

{

	nxtlvl = true;

}

function update ()

{

	if(nxtlvl)

	{

	getcomponent("Mesh Renderer");

	}

}

and it says = should be a :

what is wrong with it

Theres a fair amount wrong with that script,

React ();

// should be

function React () {
function update () {

// should be

function Update () {
getcomponent ("Mesh Renderer");

// should be

GetComponent (MeshRenderer);

Even with that, the GetComponent call isn’t doing anything.

so how do i make it render a cube then?

GameObject>Create>Cube.

i need to put script on the cube